2013-04-29, 18:02
With the OZ weather with radar, I decided to include a control button on the page for the ABC weather video. It works OK if I have a mouse but using the up/down/left/right arrows only brought up the side menu. I worked out that
<defaultcontrol always="true">50</defaultcontrol> changed to :
<defaultcontrol always="true">222</defaultcontrol> (222 being the new button id) gave focus to the button. I then included :
<onleft>50</onleft>
which seemed to enable me to access the side menu. I tried adding
<onright>222</onright> to get back but I could never get focus back on the new button unless I used the mouse and clicked on the page.
Here is my script:
<control type="button" id="222">
<description>My first button control</description>
<posx>450</posx>
<posy>550</posy>
<width>90</width>
<height>90</height>
<visible>true</visible>
<texturefocus>ABC2.png</texturefocus>
<texturenofocus>ABC.png</texturenofocus>
<onclick>PlayMedia($INFO[Window.Property(Video.1)],noresume)</onclick>
<visible>!IsEmpty(Window.Property(Video.1))</visible>
<onleft>50</onleft>
</control>
If someone can show me what I have to add to navigate between the side menu and back to the new control button it would be most appreciated
<defaultcontrol always="true">50</defaultcontrol> changed to :
<defaultcontrol always="true">222</defaultcontrol> (222 being the new button id) gave focus to the button. I then included :
<onleft>50</onleft>
which seemed to enable me to access the side menu. I tried adding
<onright>222</onright> to get back but I could never get focus back on the new button unless I used the mouse and clicked on the page.
Here is my script:
<control type="button" id="222">
<description>My first button control</description>
<posx>450</posx>
<posy>550</posy>
<width>90</width>
<height>90</height>
<visible>true</visible>
<texturefocus>ABC2.png</texturefocus>
<texturenofocus>ABC.png</texturenofocus>
<onclick>PlayMedia($INFO[Window.Property(Video.1)],noresume)</onclick>
<visible>!IsEmpty(Window.Property(Video.1))</visible>
<onleft>50</onleft>
</control>
If someone can show me what I have to add to navigate between the side menu and back to the new control button it would be most appreciated