Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Focus on a combobox
Message
De
21/02/1997 06:41:35
 
 
À
20/02/1997 13:01:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00021335
Message ID:
00021492
Vues:
40
>>>I am using a comboboxx to allow users to choose a category to display. The key reason for this is the box's incremental search feature. The problem is, even after setting focus on the box, you can't use the incremental search until after clicking the box with the mouse. Is there a way to automatically open the box and prepare it for Isearch?
>>
>>If your have drop-down list (combo.style=2), incremental search will work immediately. In drop-down combo (combo.style=0) user can type in upper section, so incremental search is irrelevant during the typing.
>
>Thanks for your reply. My I-search works like I want it to, but my complaint is that it won't work after the form opens until the user clicks on the box to open it. I would like to have the form open, and without any mouse activity, allow the user to type/search immediately. Can this be done?

If I'm understanding you properly, you want to open the list part of a combo without clicking on the button part of the combobox.

It is possible to open the list part of the combobox by adding this code to the GotFocus event of the combobox

KeyBoard {ALT+DNARROW}

This means that every time the combobox gets the focus the list part will open
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform