Posts: 175
Joined: Apr 2010
Reputation:
0
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?
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
2012-10-05, 11:53
(This post was last modified: 2012-10-05, 11:57 by `Black.)
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.
Posts: 672
Joined: Aug 2010
Reputation:
13
pieh
Retired Team-Kodi Member
Posts: 672
<onunfocus> in that button?
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first
My previous forum/trac nickname: grajen3
Posts: 672
Joined: Aug 2010
Reputation:
13
pieh
Retired Team-Kodi Member
Posts: 672
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
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first
My previous forum/trac nickname: grajen3