XBMC Community Forum
Window.IsActive? - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Skin Development (/forumdisplay.php?fid=12)
+--- Thread: Window.IsActive? (/showthread.php?tid=125700)



Window.IsActive? - Hitcher - 2012-03-16 12:48

What is an active window? How is it different to a visible window?

Thanks.


RE: Window.IsActive? - Jezz_X - 2012-03-16 13:04

Visible is including animation close time Active is only until the close window command is called


RE: Window.IsActive? - sphere - 2012-03-16 13:49

FYI, because of this was a good question and a good answer, I wanted to add this to the wiki - just noticed that is already present there:
http://wiki.xbmc.org/index.php?title=List_of_Boolean_Conditions
Code:
Window.IsVisible(window)     Returns true if the window is visible (includes fade out time on dialogs)
Window.IsActive(window)     Returns true if the window with id or title ?window? is active (excludes fade out time on dialogs)



RE: Window.IsActive? - Hitcher - 2012-03-16 16:21

I did read the wiki but didn't get it - Jezz's explanation makes sense now.

Thanks,