Posts: 204
Joined: Oct 2012
Reputation:
1
powlo
Senior Member
Posts: 204
Hi all,
I was thinking about adding helper text when a user puts their mouse pointer over a control. Is there a way to do this? Control.HasFocus() and its variants don't seem to be what I want.
Paul
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
Control.HasFocus(id) should work.
Posts: 204
Joined: Oct 2012
Reputation:
1
powlo
Senior Member
Posts: 204
It'll work on lists and buttons, but not (as far as I can tell) labels or images.
I don't really understand how focus works, what can have focus, how focus is trasferred etc. I can't find any documentation about this either.
Posts: 17,409
Joined: Aug 2007
Reputation:
586
Hitcher
Team-Kodi Member
Posts: 17,409
Just make a button control the same position and size of the image/label but without any text/textures.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
As `Black and Hitcher indicate, labels, textboxes, and images don't accept focus. Replacing with a button normally does the trick.
Posts: 204
Joined: Oct 2012
Reputation:
1
powlo
Senior Member
Posts: 204
OK thanks for the clarification!