Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to force dropdown for combo ?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to force dropdown for combo ?
Miscellaneous
Thread ID:
00734972
Message ID:
00734972
Views:
46
Based on a UT download, I have an auto-increment combo.

To do that, I have the following code in the keypress event:
LPARAMETERS nKeyCode, nShiftAltCtrl
*
* QuickFill Combo:KeyPress()

if between(nKeyCode, 32, 122)
for x = 1 to this.ListCount
if upper(subs(this.list(x), 1, this.selstart+ 1)) = ;
upper(subs(this.text, 1, this.selstart)+chr(nKeyCode))
nCurPos = this.selstart + 1
this.Value = this.list(x)
this.SelStart = nCurPos
this.SelLength = len(allt(this.list(x))) - nCurPos
nodefault
exit
endif
next x
endif

The user ask me if, when he press the down arrow, if I can automatically bring him the dropdown so he can avoid using the mouse.
Any idea if it is possible to do it ?

Thanks
Eric
Eric Crespin
Consultant
PC PLUS Software Inc.
www.pcplus.ca
Next
Reply
Map
View

Click here to load this message in the networking platform