Is there a "onhover" conditional attribute?
#1
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
Reply
#2
Control.HasFocus(id) should work.
Image
Reply
#3
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.
Reply
#4
Just make a button control the same position and size of the image/label but without any text/textures.
Reply
#5
Sure it doesn't work on labels or images. It works only on controls which actually can have focus.
  • list, wraplist, fixedlist, panel
  • group, grouplist
  • button, togglebutton, spincontrol etc.

If you need a label or image to be focusable, use a button instead.
Image
Reply
#6
As `Black and Hitcher indicate, labels, textboxes, and images don't accept focus. Replacing with a button normally does the trick.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#7
OK thanks for the clarification!
Reply

Logout Mark Read Team Forum Stats Members Help
Is there a "onhover" conditional attribute?0