Page 1 of 1

[In Progress] Give a viewport a border when it has focus?

Posted: Wed Jul 21, 2021 7:40 am
by henvu50
How can you give the viewport a border when it has focus, but then make the border go away when it loses focus?

EDIT:

I have to give the viewport a tooltip, then check that tooltip to see if the viewport is focused. If it's focused, then I have to add an image border around the viewport. When it's unfocused, the tooltip changes to something else, so then the border is no longer shown.

Seems odd that I have to take this approach. My gut tells me there is a better way to do this.

But for now, this works quite well in case anyone needs to do this in the future.