Can't get a dialog to pop up. - 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: Can't get a dialog to pop up. (/showthread.php?tid=176859) |
Can't get a dialog to pop up. - backspace - 2013-10-30 I am having a bit of trouble mucking about with a skin (just learning the ropes) and was wondering if someone could help me out I can't seam to get this dialog (720p/custom-12345.xml) to pop up when I press the button. Code: window id="12345" type="dialog"> Button shows the image when focused but nothing happens Code: <control type="button"> <onclick>ActivateWindow(12345)</onclick> <onclick>ActivateWindow(custom-12345)</onclick> <onclick>XBMC.ActivateWindow(12345)</onclick> <onclick>XBMC.ActivateWindow(custom-12345)</onclick> What have I done wrong? Thanks for helping RE: Can't get a dialog to pop up. - jmarshall - 2013-10-30 Does the Debug Log show any issues loading the custom window or any response when pushing the button? I'm assuming your XML above is copy n pasted wrong, as there's a few issues with it (try loading it into a browser to verify it). RE: Can't get a dialog to pop up. - ronie - 2013-10-30 use a 4 digit window id, eg "1234" ActivateWindow(1234) is the correct function to open custom windows. RE: Can't get a dialog to pop up. - butchabay - 2013-10-30 ... and by the way you have 2 </controls> at the end of your custom dialog window, delete one. RE: Can't get a dialog to pop up. - backspace - 2013-10-31 Yes it was just cut and pasted, actual code was ok The 4 digit id, ActivateWindow(1234) worked Thanks for your help |