2018-03-30, 21:48
Hello,
I searched and couldn't find a solution. Can someone please assist with code that will allow $Param[lable] displayed when a radiobutton is focused. I'm trying to modify below code:
I tried adding <itemfocus> in the code and defining $Param[label] there, didn't work:
I searched and couldn't find a solution. Can someone please assist with code that will allow $Param[lable] displayed when a radiobutton is focused. I'm trying to modify below code:
code:
<include name="CustomRadioButton">
<param name="height">100</param>
<param name="visible">true</param>
<definition>
<control type="radiobutton" id="$PARAM[control_id]">
<width>100</width>
<height>$PARAM[height]</height>
<align>center</align>
<aligny>center</aligny>
<onclick>$PARAM[onclick]</onclick>
<onclick>$PARAM[onclick_2]</onclick>
<onclick>$PARAM[onclick_3]</onclick>
<SendClick>$PARAM[sendclick]</SendClick>
<selected>$PARAM[selected]</selected>
<font></font>
<label>$PARAM[label]</label>
<texturefocus colordiffuse="button_focus">buttons/roundbutton-fo.png</texturefocus>
<texturenofocus />
<radioposx>2</radioposx>
<radioposy>0</radioposy>
<radiowidth>100</radiowidth>
<radioheight>100</radioheight>
<textureradioonfocus colordiffuse="white">$PARAM[icon_on]</textureradioonfocus>
<textureradioonnofocus colordiffuse="grey">$PARAM[icon_on]</textureradioonnofocus>
<textureradioofffocus>$PARAM[icon_off]</textureradioofffocus>
<textureradiooffnofocus colordiffuse="grey">$PARAM[icon_off]</textureradiooffnofocus>
</control>
</definition>
</include>
I tried adding <itemfocus> in the code and defining $Param[label] there, didn't work:
code:<include name="CustomRadioButton">
<param name="height">100</param>
<param name="visible">true</param>
<definition>
<control type="radiobutton" id="$PARAM[control_id]">
<width>100</width>
<height>$PARAM[height]</height>
<align>center</align>
<aligny>center</aligny>
<onclick>$PARAM[onclick]</onclick>
<onclick>$PARAM[onclick_2]</onclick>
<onclick>$PARAM[onclick_3]</onclick>
<SendClick>$PARAM[sendclick]</SendClick>
<selected>$PARAM[selected]</selected>
<font></font>
<texturefocus colordiffuse="button_focus">buttons/roundbutton-fo.png</texturefocus>
<texturenofocus />
<radioposx>2</radioposx>
<radioposy>0</radioposy>
<radiowidth>100</radiowidth>
<radioheight>100</radioheight>
<textureradioonfocus colordiffuse="white">$PARAM[icon_on]</textureradioonfocus>
<textureradioonnofocus colordiffuse="grey">$PARAM[icon_on]</textureradioonnofocus>
<textureradioofffocus>$PARAM[icon_off]</textureradioofffocus>
<textureradiooffnofocus colordiffuse="grey">$PARAM[icon_off]</textureradiooffnofocus>
</control>
<itemlayout height="85" width="100">
<control type="image">
<left>17</left>
<top>25</top>
<width>35</width>
<height>35</height>
<texture>$INFO[ListItem.Icon]</texture>
</control>
</itemlayout>
<focusedlayout height="85" width="100">
<control type="image">
<animation effect="slide" end="-150,0" start="0,0" time="100" tween="sine" easing="out">Windowclose</animation>
<animation effect="slide" end="15,0" start="0,0" time="100" tween="sine" easing="out">Windowopen</animation>
<top>20</top>
<left>100</left>
<width>300</width>
<height>50</height>
<texture colordiffuse="E1FFFFFF">colors/black.png</texture>
</control>
<control type="label">
<animation effect="slide" end="-150,0" start="0,0" time="100" tween="sine" easing="out">Windowclose</animation>
<animation effect="slide" end="15,0" start="0,0" time="100" tween="sine" easing="out">Windowopen</animation>
<top>24</top>
<width>500</width>
<align>center</align>
<height>50</height>
<font>font12</font>
<align>center</align>
<textcolor>white</textcolor>
<align>center</align>
<scroll>true</scroll>
<label>$Param[label]</label>
</control>
</control>
</focusedlayout>
</include>
</definition>
</include>