Jump to content

Need focus lines


qwert
 Share

Recommended Posts

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.

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...