Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to drop down a combobox when user types '{Enter}'
Message
 
 
À
29/11/2004 22:57:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00965600
Message ID:
00965602
Vues:
9
>How do you open a combobox programmatically when user types {Enter} while in it?

By default, Enter moves focus to the next control in the tab order. I'm not sure it's a good idea to change that. Anyway, you can get desired result with following code.
* Combobox Keypress
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode = 13
	KEYBOARD "{ALT+DNARROW}" CLEAR PLAIN
	NODEFAULT 
ENDIF	
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform