2010-12-06, 07:17
No doubt the problem is really simple, but I have been staring at this for a while and I can't spot what's wrong. If someone could look over my shoulder and point out where the error is, it would be greatly appreciated.
Anyway the problem is that when I first enter the MyVideoNav.xml that I have included the following code
I have the following shown in the debug log
ERROR: Control 50 in window 10024 has been asked to focus, but it can't
If I navigate back to the home menu and then navigate back to MyVideoNav.xml the SetFocus seems to work fine. The button id is not used anywhere in the MyVideoNav.xml or any of the views that I can see, so I'm assuming that is not the problem. I have the following line at the top of the file
So as far as I can see what should be happening is
As I said, probably something really simple, but I just can't see it.
Help!!
Wyrm (xTV-SAF)
Anyway the problem is that when I first enter the MyVideoNav.xml that I have included the following code
PHP Code:
<control type="button" id="1">
<description>run WOL script</description>
<onfocus>XBMC.RunScript($INFO[Skin.String(wake-scriptpath)])</onfocus>
<onfocus>SetFocus(50)</onfocus>
<texturenofocus>-</texturenofocus>
<texturefocus>-</texturefocus>
<visible>Skin.HasSetting(wake-source)</visible>
</control>
<control type="button" id="1">
<description>bypass running of WOL script</description>
<onfocus>SetFocus(50)</onfocus>
<texturenofocus>-</texturenofocus>
<texturefocus>-</texturefocus>
<visible>!Skin.HasSetting(wake-source)</visible>
</control>
ERROR: Control 50 in window 10024 has been asked to focus, but it can't
If I navigate back to the home menu and then navigate back to MyVideoNav.xml the SetFocus seems to work fine. The button id is not used anywhere in the MyVideoNav.xml or any of the views that I can see, so I'm assuming that is not the problem. I have the following line at the top of the file
PHP Code:
<defaultcontrol always="true">1</defaultcontrol>
- Button 1 gets focus and runs the script if users has Skin.HasSetting(wake-source) set to true
- Focus is then set to id=50 (the list view) and should carry on as it had before my change.
As I said, probably something really simple, but I just can't see it.
Help!!
Wyrm (xTV-SAF)