Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to invoke a form instead of drop down for combobox
Message
De
02/07/2000 12:10:52
 
 
À
02/07/2000 09:48:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00387524
Message ID:
00387546
Vues:
11
>>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
>

Actually, rather than a ComboBox, since no ComboBox functionality is being used, it'd make more sense to use a label or textbox control, and simply trap the Click() to fire the form. You can pass the current position of the control firing the 'combo form' and use that to position the form so it appears to 'drop down' when activated.

>Ken
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform