Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to force dropdown for combo ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00734972
Message ID:
00734985
Views:
20
Eric, you could try do it with these commands:


KEYBOARD '{CTRL+DNARROW}'

Or

KEYBOARD '{F4}' PLAIN CLEAR


>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
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform