Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
First click on a combobox in a grid
Message
From
20/05/1998 11:03:34
 
 
To
19/05/1998 16:06:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00100390
Message ID:
00100559
Views:
64
>Is it possible to implement the following ? First click on a combobox in a grid only sets up a current cell and the second click on the same cell shows the list of values.

-------- reply --------

Hello Gennadiy,

Try putting a timeout in the gotfocus() event of the combobox. The combobox is one a timer -- if stall around in gotfocus() until the timer runs out, the list will not drop. I cannot tell you the precise interval -- I found it by accident when I had a lot of code in a gotfocus() event of a combobox and it would not drop until the second click. Actually this is a bug, but one that seem to work to your advantage in this instance. A couple of milleseconds ought to do it.

Another way that sees to work is to put a call to an object outside of the form the control is on i.e. this.backcolor = oApp.backcolor. This seems to create enough delay so the list will not drop.

I cannot guarantee either of these will work -- but these are little bugs that have driven me crazy in the past.

Regards,

JME
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform