2012-09-09, 01:30
(2012-09-05, 16:39)ronie Wrote:(2012-09-05, 08:19)Hitcher Wrote: ActivateWindow(id)AndFocus(id) - was this PVR related and how does it differ from defaultcontrol/onload?
yes it was part of the pvr merge.
looking at it again, i think the correct syntax is ActivateWindowAndFocus(id,id)
i have no info on how/why/when to use or what it's supposed to do.
Actually if you look in keymap.xml its a hell of a lot weirder than that
PHP Code:
<e>XBMC.ActivateWindowAndFocus(MyPVR, 31,0, 10,0)</e>
<h>XBMC.ActivateWindowAndFocus(MyPVR, 32,0, 11,0)</h>
<j>XBMC.ActivateWindowAndFocus(MyPVR, 33,0, 12,0)</j>
<k>XBMC.ActivateWindowAndFocus(MyPVR, 34,0, 13,0)</k>
<b>XBMC.ActivateWindowAndFocus(MyPVR, 35,0, 14,0)</b>
I get what some of it does its designed to get around a visible flaw in the pvr windows ie: the first one opens the live tv window sets focus to control 31 (which causes all the epg info controls to be visible) and then sets focus to the control 10 (the EPG grid) but I honestly have no idea what the Zeros and the spaces do