2014-04-17, 19:10
Hi again,
I have a question about binding an action to a button.
Can actions such as ActivateWindow() be attached to <onright> or <onleft>?
To illustrate my question, I have a main menu:
Movies >
Music
Pictures
Settings
Focusing on the Movies, reveals a submenu include. However I want it so that when you are focused on movies, the right key should reveal the submenu.
The code for the submenu include is:
The code for the list item:
How do I "bind" an action to reveal the include when you tap the right key when you are focused on "Movies?"
I am a beginner, so I have a lot of questions that I couldn't find answers for by searching...
Thanks very much in advance.
I have a question about binding an action to a button.
Can actions such as ActivateWindow() be attached to <onright> or <onleft>?
To illustrate my question, I have a main menu:
Movies >
Music
Pictures
Settings
Focusing on the Movies, reveals a submenu include. However I want it so that when you are focused on movies, the right key should reveal the submenu.
The code for the submenu include is:
Code:
<!-- The submenu that offers some additional functions for doing stuff with movies -->
<include name="HomeMenu_MovieSubMenu">
<control type="group">
<orientation>horizontal</orientation>
<posx>690</posx>
<posy>155</posy>
<width>700</width>
<height>60</height>
<itemgap>20</itemgap>
<onleft>1</onleft>
<onright>1</onright>
<control type="label">
<visible>Container(300).HasFocus(1)</visible>
<label>ADD MOVIE SOURCE</label>
<width>440</width>
<height>60</height>
<textcolor>white</textcolor>
<font>Medium</font>
<posx>0</posx>
<posy>0</posy>
</control>
</control>
</include>
The code for the list item:
Code:
<item id="1">
<description>Movies</description>
<label>31006</label>
<icon>icons/popcorn.png</icon>
<onclick>ActivateWindow(Video,movietitles)</onclick>
</item>
How do I "bind" an action to reveal the include when you tap the right key when you are focused on "Movies?"
I am a beginner, so I have a lot of questions that I couldn't find answers for by searching...
Thanks very much in advance.