Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
First click on a combobox in a grid
Message
De
20/05/1998 11:03:34
 
 
À
19/05/1998 16:06:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00100390
Message ID:
00100559
Vues:
66
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform