Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to invoke a form instead of drop down for combobox
Message
From
02/07/2000 09:48:47
 
 
To
02/07/2000 07:42:08
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00387524
Message ID:
00387534
Views:
17
>how to invoke a form instead of drop down for combobox.
>I have tried creating a container class of textbox and commandbutton but while design time the controls do not resize on form.
>Is there any way I can invoke a form instead of drop down list for the combobox.

Rajesh,

You can trap the mouse click in the MOUSEDOWN event and space bar in the KEYPRESS event and call the second form.

In the KEYPRESS event put something like:


LPARAMETERS nKeyCode, nShiftAltCtrl

If nKeyCode=32.and.nShiftAltCtrl=0 && check for space bar
NoDefault
Do Form Form2
Endif


In MOUSEDOWN put:


LPARAMETERS nButton, nShift, nXCoord, nYCoord

NoDefault
Do Form Form2



Hope this helps

Ken
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform