Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to force a combobox to dropdown?
Message
From
23/03/2007 13:42:41
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01207644
Message ID:
01207847
Views:
23
I had proposed accomplishing it with
This.DropDown()
in the Combo.Keypress instead of
KEYBOARD   '{ALT+DNARROW}' PLAIN CLEAR
This.DropDown() didn't work when I tested it with SPACE. In our framework it does work with the F4 key.


>>Retracted, my idea doesn't work with SPACE.
>>
>>
>>>I've got a special quickfill combobox based on the quickfill combo in "1001 Things ...". However, in our situation, no valid entries can begin with spaces. So, I'd like to make the combobox work like a dropdown list when the spacebar is pressed (i.e. opens/displays the dropdown list).
>>>
>>>I tried trapping the spacebar in the interactivechange event and then calling this.DropClick. That seemed to have no effect.
>>>
>>>Is this possible to do?
>
>
>Sure you can. In your ComboBox.KeyPress:
>
LPARAMETERS nKeyCode, nShiftAltCtrl
>IF nKeyCode=32 AND nShiftAltCtrl=0
>  NODEFAULT
>  KEYBOARD   '{ALT+DNARROW}' PLAIN CLEAR
>ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform