Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know is combobox is open?
Message
De
03/02/2003 17:58:56
 
 
À
03/02/2003 16:21:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00748605
Message ID:
00748669
Vues:
17
Hi Alex.

How do I know if the list part of a combobox is open or closed?

You add a custom property called lDroppedDown to your combo box class and add this code:

Click Method:
This.lDroppedDown = .F.
DropDown Method:
This.lDroppedDown = .T.
KeyPress Method:
*** If escape or enter pressed, the list is not dropped down anymore
IF nKeyCode = 27 OR nKeyCode = 13		    
  .lDroppedDown = .F.
ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform