Jump to content
Sign in to follow this  

Setting focus to label and label changing when has focus?

Recommended Posts


I am using labels with background colours as buttons (eg label with blue background with while text as my button), they work well but it is not possible to tell when one of them is in focus. The UI I have made is for an HTPC, which is why I have used labels as buttons for my script instead of the standard windows control buttons.

Is there a way to set the focus to a label? And for the label to respond to being infoucs? Could I make it change text or background colour?

A mouse is not used with my UI, so I'm not meaning on mouseover events, just the focus when the button is tabbed to etc it could do something so I know which button is currently selected (as I hope to use keyboard arrow keys/remote control to navigate the UI instead of a mouse)

Share this post

Link to post
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
Sign in to follow this