Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox Tricks
Message
De
30/11/1997 07:36:20
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00062832
Message ID:
00062910
Vues:
42
>>Hi all,
>>
>>Has anyone tried to activate the the drop down list by activating a function key, ex: F2? I have tried to put codes in the combo box keypress:
>> ex: if lastkey()=-1
>> this.downclick()
>> ......
>>This does not work. I have also check the form keypreview property but also not luck there. Any hint?
>>
>>In combobox, if I do not want to allow user to enter anything except choose from the drop down, how I should accomplish this?
>>
>>Thanks.
>>
>>Regards,
>>Farouk Yew Abdullah
>
>Farouk.
>1. Have you tried Keypress event of the form?
>2. For combobox, set the Style property to Dropdown List.
>
>HTH
>John.

I'm not sure if you wish to activate the combo with a specific or an available keypress (Available is usually better because no matter who the developer was it will always work the same way). If available is good enough then: if the Style propery is set to Combo you can either press ALT-DOWNARROW or ALT-UPARROW - If the Style property is List then you can also use the SPACEBAR
Ernest
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform