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:19:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
30/03/2001 06:16:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00490222
Message ID:
00490244
Views:
14
>>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
this.Value = this.Value
if nKeyCode = 13 and empty(this.Value)
> nodefault
> keyboard "{ALT+dnarrow}"
>endif
If you'd use instead lastkey() then be sure to inlude :
>
>and !MDOWN()
>
>Cetin
Would be.
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