Kodi Community Forum

Full Version: Perform action on visibility change?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any way to perform an action when a control's visible state changes?

Specifically what I was hoping to do was change the control focus. Wanted to do something like a cascading menu like Windows Start button. When a certain control gets focus, I would have the other menu appear using the visible condition, and have the GUI focus move to the new control group.
Sure - you do it <onfocus> of the original control via <onfocus>Control.SetFocus(id)</onfocus>
jmarshall Wrote:Sure - you do it <onfocus> of the original control via <onfocus>Control.SetFocus(id)</onfocus>

Ahh cool. Thanks JM, you rock as usual!