Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container - Selective GotFocus on Click/Tab
Message
From
04/02/2009 07:14:10
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
03/02/2009 15:29:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01379017
Message ID:
01379156
Views:
14
>Seems to me that it's as easy as setting the tab order of the container. If the textbox is before the dropdown, it will get focus when you tab.
>
>>I have a container that contains a textbox and a dropdown. When the mouse is clicked over the texbox, or the container is tabbed into, I want the textbox to have the focus. When the mouse is clicked over the dropdown, I want that to have the focus. I put code originally into the container.gotfocus like this:
>>
>>THIS.EntryTextBox.SetFocus
>>
>>But that causes problems when you click over the dropdown, the textbox gets the focus, then a 2nd click allows the dropdown to get the focus. How can I make this work?

It is, and that's what I thought would happen, but for some reason another control in the container is getting the focus. It's actually a fairly complicated class, but I can't seem to find anything changing the Tab Order. Is there anything else that could affect the order coming into a container of controls?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform