Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How 2 Stop a ComboBox DropDown?
Message
De
17/04/2000 13:04:21
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00360450
Message ID:
00360475
Vues:
15
>Hi All.
>
>Is there any way I can get a ComboBox to NOT drop down a List when I hit the RETURN key? No matter what I do it always brings up the list box. I can skip the box with TAB but Im trying to create the ultimate ComboBox to use in all my applications and I would like it to be perfect :-)
>
>RETURN should bring up the List if the my custom method (this.blankentry) is .F. and skip it if .T.
>

Try trapping the RETURN with the KeyPressEvent:

IF This.BlankEntry AND nKeyCode == 13
NODEFAULT
KEYBOARD '{CTRL+TAB}' && Moves to the next control in your tab order
ENDIF

Hope this helps!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform