2012-09-07, 07:22
How can I display a list of 50 radio buttons on a window each one is displayed below another so that if list reaches to bottom of window a scroll bar appears and radio buttons do not cross the window boundary ?
currently I am doing it like following but is not working:
Thanks for help in advance.
currently I am doing it like following but is not working:
PHP Code:
<control type="list" id="100610">
<posx>30</posx>
<posy>105</posy>
<width>950</width>
<height>400</height>
<onup>9001</onup>
<onleft>9000</onleft>
<onright>60</onright>
<ondown>12</ondown>
<pagecontrol>60</pagecontrol>
<scrolltime>200</scrolltime>
<itemlayout height="40">
<control type="radiobutton">
<description>Default RadioButton</description>
<posx>0</posx>
<posy>0</posy>
<width>900</width>
<height>40</height>
<font>font12</font>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<label>$INFO[ListItem.Label]</label>
<texturefocus border="0,2,0,2">MenuItemFO.png</texturefocus>
<texturenofocus border="0,2,0,2">MenuItemNF.png</texturenofocus>
<textureradioon>radiobutton-focus.png</textureradioon>
<textureradiooff>radiobutton-nofocus.png</textureradiooff>
</control>
</itemlayout>
<focusedlayout height="40">
<control type="radiobutton">
<description>Default RadioButton</description>
<posx>0</posx>
<posy>0</posy>
<width>900</width>
<height>40</height>
<font>font12</font>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<label>$INFO[ListItem.Label]</label>
<texturefocus border="0,2,0,2">MenuItemFO.png</texturefocus>
<texturenofocus border="0,2,0,2">MenuItemNF.png</texturenofocus>
<textureradioon>radiobutton-focus.png</textureradioon>
<textureradiooff>radiobutton-nofocus.png</textureradiooff>
</control>
</focusedlayout>
<content>
<item>
<label>zx</label>
</item>
<item>
<label>cv</label>
</item>
----------------------
----------------------
</content>
</control>
<control type="scrollbar" id="60">
<posx>950</posx>
<posy>105</posy>
<width>25</width>
<height>400</height>
<texturesliderbackground border="0,14,0,14">ScrollBarV.png</texturesliderbackground>
<texturesliderbar border="0,14,0,14">ScrollBarV_bar.png</texturesliderbar>
<texturesliderbarfocus border="0,14,0,14">ScrollBarV_bar_focus.png</texturesliderbarfocus>
<textureslidernib>scrollbar_nib.png</textureslidernib>
<textureslidernibfocus>scrollbar_nib.png</textureslidernibfocus>
<onleft>10</onleft>
<onright>9000</onright>
<showonepage>false</showonepage>
<orientation>vertical</orientation>
</control>
Thanks for help in advance.