Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container - Selective GotFocus on Click/Tab
Message
 
 
To
03/02/2009 14:13:06
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01379017
Message ID:
01379018
Views:
19
>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?

May be you should determine which control to put focus depending on mouse position in the container's GotFocus? In other words, analyze the current mouse coordinates?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform