Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know is combobox is open?
Message
From
03/02/2003 17:58:56
 
 
To
03/02/2003 16:21:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00748605
Message ID:
00748669
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform