"ActivateWindow" in a custom_<foo>.xml (Problem) - 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: "ActivateWindow" in a custom_<foo>.xml (Problem) (/showthread.php?tid=186369) |
"ActivateWindow" in a custom_<foo>.xml (Problem) - Rantanplan-1 - 2014-02-15 Hello Got a Problem. Not shure if i do someting wrong (Or could it be a Bug??) i've got a "custom_SettinsMain.xml" which i load by "<oncklick>ActivateWindow(1234)</onclick> from the Homemenu. (Which works fine.) Now in this "custom_SettingsMain.xml" i've got some items, where i try to open other Windows (with "ActivateWindow"). And now the Proble: All with "Activate Window" opened Windows from my "custom Window" are shown behinde theses Window. (Just why?? confused! -> Bug? or do i miss something?) This behavior is the same in Frodo and Gotham Nightlys. as soon as i close my custom Window, i see all the Windows i opened thru "Activate Window" from my custom Window. In other Windows "ActivateWindow" shows the new Window abouth. No Idea why not in a custom Window. Hope i could explain the Problem well enoth. P.S.: if i close my custom window with a "<onclick>close</onclick> i see the opened window, but the Problem is; as soon as i close the Opened window i fall back to the Homescreen instead of to my custom Window PHP Code: <onclick>Close</onclick> RE: "ActivateWindow" in a custom_<foo>.xml (Problem) - Hitcher - 2014-02-15 You've probably set the type to 'dialog' instead of 'window' - dialogs are always drawn above windows. You could also add an onclick function to close your custom window. RE: "ActivateWindow" in a custom_<foo>.xml (Problem) - Rantanplan-1 - 2014-02-15 (2014-02-15, 16:13)Hitcher Wrote: You've probably set the type to 'dialog' instead of 'window' - dialogs are always drawn above windows. yes: PHP Code: <window id="1234" type="dialog"> Thanks! this solved the Problem!!! With "window" all works as expected! (2014-02-15, 16:13)Hitcher Wrote: You could also add an onclick function to close your custom window. yes did try this PHP Code: <onclick>Close</onclick> but type="window" was exactly, what i was looking for. thx! |