General information
Category:
Forms & Form designer
Title:
How to detect if an AUTO-COMPLETE dropdown is shown
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?
Thanks!!!
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only