How to display the label when user clicks on the button?
#12
PHP Code:
<control type="group"><!-- pull down menu to select AlbumsArtistsSongsFiles-->
                  <
description>Select of AlbumsArtistsSongsFiles </description>
                  <
posx>220</posx>
                  <
posy>5</posy>
                  <
width>230</width>
                  <
height>50</height>
                      <
control type="button" id="4724">
                    <
posx>1</posx>
                    <
posy>1</posy>
                    <
width>160</width>
                    <
label>$INFO[Skin.String(choice2)]</label>
                    <
align>center</align>
                    <
texturefocus>fg1.png</texturefocus>    
                    <
texturenofocus>fg.png</texturenofocus>
                    <
onleft>4723</onleft>
                    <
onright>19</onright>

                    <
ondown>Skin.ToggleSetting(enable_dropdown_list2)</ondown>
                    <
ondown>6</ondown>
                    <
onclick>Skin.ToggleSetting(enable_dropdown_list2)</onclick>

                </
control>
                <
control type="list" id="6">
                      <
description>List of the choices AlbumsArtistsSongs and Files</description>
                      <
posx>1</posx>
                      <
posy>41</posy>
                      <
width>160</width>
                      <
height>130</height>

                      <!--
onleft>Skin.ToggleSetting(enable_dropdown_list2)</onleft-->
                    <
onleft>4724</onleft>
                      <
visible allowhiddenfocus="false">Skin.HasSetting(enable_dropdown_list2) </visible>

                    <
itemlayout width="160" height="30">
                    <
control type="image">
                          <
description>image control</description>
                          <
posx>0</posx>
                          <
posy>1</posy>
                          <
width>160</width>
                          <
height>30</height>
                          <
texture>fg.png</texture>
                    </
control>
                    <
control type="label">
                        <
posx>50</posx>
                         <
posy>1</posy>
                        <
width>160</width>
                        <
height>30</height>
                        <
font>font12</font>
                        <
info>ListItem.Label</info>
                        <
textcolor>0xffffffff</textcolor>
                        <
aligny>center</aligny>
                    </
control>
                            </
itemlayout>
                            <
focusedlayout width="160" height="30">
                    <
control type="image">
                          <
description>image control</description>
                          <
posx>0</posx>
                          <
posy>1</posy>
                          <
width>160</width>
                          <
height>30</height>
                          <
texture>fg1.png</texture>
                    </
control>
                    <
control type="label">
                        <
posx>50</posx>
                         <
posy>1</posy>
                        <
width>160</width>
                        <
height>30</height>
                        <
font>font13</font>
                        <
info>ListItem.Label</info>
                        <
textcolor>0xffffffff</textcolor>
                        <
shadowcolor>ff441400</shadowcolor>
                        <
aligny>center</aligny>
                    </
control>
                      </
focusedlayout>
         
                        <
content><!-- Static contents -->
                          <
item id="1">
                            <
label>Songs</label>
                            <
onclick>Skin.SetString(choice2,"Songs")</onclick>
                            <
onclick>ActivateWindow(MusicLibrary,Songs,return)</onclick>
                          </
item>
                          <
item id="2">
                            <
label>Artists</label>
                            <
onclick>Skin.SetString(choice2,"Artists")</onclick>
                            <
onclick>ActivateWindow(MusicLibrary,Artists,return)</onclick>
                          </
item>
                          <
item id="3">
                            <
label>Albums</label>
                            <
onclick>Skin.SetString(choice2,"Albums")</onclick>
                            <
onclick>ActivateWindow(MusicLibrary,Albums,return)</onclick>
                          </
item>
                          <
item id="4">
                            <
label>Files</label>
                            <
onclick>Skin.SetString(choice2,"Files")</onclick>
                            <
onclick>ActivateWindow(musicfiles)</onclick>
                          </
item>
                    </
content>
                    </
control>
        </
control
Reply


Messages In This Thread
RE: How to display the label when user clicks on the button? - by slinuxgeek - 2012-04-05, 11:45
Logout Mark Read Team Forum Stats Members Help
How to display the label when user clicks on the button?0