Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically activate the drop down list in a Combo B
Message
From
30/03/2001 06:16:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
30/03/2001 01:36:31
F. Bennett Swenson
Sundance Aerial Photography
Hurst, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00490222
Message ID:
00490243
Views:
10
>Is there a way to cause the drop down list of a Combo Box to "pop up" (or "pop down") when
>the user tries to enter a blank in its input field?
>
>I'd like to use something like "thisform.comobox1.ActivateDropDownList = .T.",
> when the combo box looses focus AND Lastkey() = 13.
>
>Does any such property or command exist for the Combo Box?
>
>TIA
>
>F. Bennett Swenson

You could use keypress if specifically [Enter] controlled and stuff alt+downarrow keyboard buffer.
LPARAMETERS nKeyCode, nShiftAltCtrl
if nKeyCode = 13
 nodefault
 keyboard "{ALT+dnarrow}"
endif
If you'd use instead lastkey() then be sure to inlude :

and !MDOWN()

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform