Focus on a icon when clicked

In a standard GUI an icon can't take focus as its not a control (like a button, text input, dropdown, etc.). I think you'll find that you can't do it with a label either.

Why would you want to? If you're using it as a button then use a button and set the icon property in it and no caption text. Create a Perspective style for transparent button and add that to the button style classes.

Further thought: anything in Designer's Perspective Components Display section shouldn't be able to accept focus. They are "display" only despite being clickable.

2 Likes