Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect if an AUTO-COMPLETE dropdown is shown
Message
De
27/02/2010 09:23:21
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01451377
Message ID:
01451422
Vues:
69
>Hello!
>
>This has been bothering me for a few days... hopefully someone here can shed some light!!
>
>I have a Form with a Textbox set to support AutoComplete. Of course, that means that an AutoComplete Dropdown appears while the interactive input to the textbox matches at least one entry on the table that supports the AutoComplete function.
>
>How can I detect if the DropDown triggered by AutoComplete is visible? (Depending on whether the AutoComplete DropDown is visible/active or not I would allow/disallow a method from firing at the KeyPress event of the Textbox).
>
>None of the ideas I have come up with to try to detect the presence of a visible AutoComplete dropdown are painless to implement or "elegant" (for example, trapping for a down-arrow key, or a tab, or text value that "fits" into an available entry of the AutoComplete table). I am sure, the AutoComplete dropdown object is defined/available somewhere where I can read its VISIBLE property but I don't how to look for it. Is it named randomly by VFP as I suppose? Would it be part of _SCREEN?
>

I don't think there's an object to grab onto here. The only thing I can suggest is to turn on Event Tracking and see what, if anything, fires.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform