Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Blank Entry in ComboBox?
Message
 
À
14/06/2001 10:36:56
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00519351
Message ID:
00519796
Vues:
14
This message has been marked as a message which has helped to the initial question of the thread.
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 R. Givens

Brampwood Systems
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform