Perform action on visibility change? - 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: Perform action on visibility change? (/showthread.php?tid=30976) |
Perform action on visibility change? - agathorn - 2008-01-31 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. - jmarshall - 2008-01-31 Sure - you do it <onfocus> of the original control via <onfocus>Control.SetFocus(id)</onfocus> - agathorn - 2008-01-31 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! |