Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Blank Entry in ComboBox?
Message
De
15/06/2001 11:30:31
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00519351
Message ID:
00519992
Vues:
20
>Renoir,
>
>Here's code I use in the KeyPress method of the combo:
>
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>
>IF THIS.STYLE = 2 AND nKeyCode = KEY_DELETE
>  THIS.LISTINDEX = 0
>  THIS.INTERACTIVECHANGE()
>ENDIF
>
>
>KEY_DELETE = 7
>
>This allows the delete key to be used to "reset" the combo.
>
>>The application I'm working on uses the logic of having the first entry (default) in the RowSource as a space so that the user can select this if they choose an incorrect entry. For example, if the user inadvertently picked an option, without the blank available they would only be able to choose another option. This doesn't seem like a good interface to me. Is there a way for the user to easily revert the CombeBos to an empty value without having the blank in the list? Thanks!
>>
>>Regards, Renoir
Brien -
i was going to offer, that in the right click event, i set
the control's VALUE property to 0 or '' , but i like your
method better.  more intuitive.
patrick
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform