Kodi Community Forum
<onfocus> for controls other than buttons? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: <onfocus> for controls other than buttons? (/showthread.php?tid=142038)



<onfocus> for controls other than buttons? - vanMiez - 2012-10-05

is the <onfocus> tag only available for buttons and toggle buttons? why not for all focusable controls?

i need something to stop a counter if a button loses focus and another control i.e. wraplist gets focused... is there something i can do? suggestions?


RE: <onfocus> for controls other than buttons? - `Black - 2012-10-05

Put a button with onfocus in the focusedlayout layout of your wraplist. I would add an extra condition so it will be executed only if the counter is running. Another possibility is to stop it in the onleft, onright, onup, ondown and maybe also onclick action of the button. This wouldn't work if you change the focus via SetFocus but then you could do it before you do SetFocus.


RE: <onfocus> for controls other than buttons? - pieh - 2012-10-05

<onunfocus> in that button?


RE: <onfocus> for controls other than buttons? - vanMiez - 2012-10-05

(2012-10-05, 11:58)pieh Wrote: <onunfocus> in that button?

this exists? great! works perfect...

think it's missing in the wiki.


RE: <onfocus> for controls other than buttons? - pieh - 2012-10-05

wasn't aware it wasn't there

if someone would like to update wiki:
<onfocus> / <onunfocus> tags are available for buttons, togglebuttons and radiobuttons controls


RE: <onfocus> for controls other than buttons? - ronie - 2012-10-05

(2012-10-05, 13:08)pieh Wrote: wasn't aware it wasn't there

if someone would like to update wiki:
<onfocus> / <onunfocus> tags are available for buttons, togglebuttons and radiobuttons controls

done.
never knew <onunfocus> existed :-)


RE: <onfocus> for controls other than buttons? - Hitcher - 2012-10-05

Me neither. Shocked