qwert Posted February 1, 2015 Posted February 1, 2015 I have the opposite problem of what most of the discussions of focus lines center on (which is how to be rid of them). I need focus lines whenever a user clicks on a modifiable control. The problem I have is that focus lines seem only to be activated after a key action like a Tab. Once a key has been used, the focus lines are active for every control on the GUI, whether tabbed to or clicked on. However, if only mouse actions are used, the lines aren't active. What method can I use to "arm" the lines so that the first mouse action causes them to display? Thanks in advance for help.
qwert Posted February 2, 2015 Author Posted February 2, 2015 I've happened upon something that works ... but I don't know why it does. Send([Tab]) ... when it follows immediately after the GUISetState() that initially displays the GUI. I want to emphasize that my GUI is not tab-driven in any way. Mouse clicks are used to access individual elements, not the Tab key. I just happened to notice that pressing Tab on the keyboard cause subsequent clicked-on controls to display focus lines. I would rather use a method that is documented and explainable. But, for the time being, I'll have to use this. Further suggestions and observations are welcome.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now