2006-08-09, 04:46
I have been trying to write a buttonscroller. At first I couldn't get it to show up but I have worked that out. Now the problem is that the buttonscroller won't scroll. Here is the sample code.
I need your input on why it won't scroll. Thanks!
Code:
<window>
<id>4</id>
<defaultcontrol>15</defaultcontrol>
<allowoverlay>yes</allowoverlay>
<controls>
<control>
<description>background image</description>
<type>image</type>
<id>1</id>
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>576</height>
<texture>background-settings.png</texture>
</control>
<control>
<description>Settings image</description>
<type>image</type>
<id>2</id>
<posx>30</posx>
<posy>26</posy>
<width>210</width>
<height>70</height>
<texture>settings_logo.png</texture>
</control>
<controlgroup>
<control>
<description>Settings Buttons</description>
<type>buttonscroller</type>
<id>300</id>
<posx>300</posx>
<posy>150</posy>
<width>150</width>
<height>60</height>
<buttongap>65</buttongap>
<numbuttons>3</numbuttons>
<orientation>vertical</orientation>
<align>left</align>
<aligny>top</aligny>
<movement>2</movement>
<defaultbutton>2</defaultbutton>
<wraparound>yes</wraparound>
<smoothscrolling>yes</smoothscrolling>
<alpha>70</alpha>
<font>special13</font>
<onleft>300</onleft>
<onright>300</onright>
<onup>300</onup>
<ondown>300</ondown>
<textoffsetx>20</textoffsetx>
<texturefocus></texturefocus>
<texturenofocus></texturenofocus>
<textcolor>FFffffff</textcolor>
<include>home-buttonscroller</include>
<buttons>
<button id="142">
<description>Appearance</description>
<label>480</label>
<onclick>ActivateWindow(AppearanceSettings)</onclick>
</button>
<button id="143">
<description>My Videos</description>
<label>3</label>
<onclick>ActivateWindow(MyVideosSettings)</onclick>
</button>
<button id="144">
<description>My Music</description>
<label>2</label>
<onclick>ActivateWindow(MyMusicSettings)</onclick>
</button>
<button id="145">
<description>My Pictures</description>
<label>1</label>
<onclick>ActivateWindow(MyPicturesSettings)</onclick>
</button>
<button id="146">
<description>My Programs</description>
<label>0</label>
<onclick>ActivateWindow(MyProgramsSettings)</onclick>
</button>
<button id="147">
<description>My Weather</description>
<label>8</label>
<onclick>ActivateWindow(MyWeatherSettings)</onclick>
</button>
<button id="148">
<description>Weather</description>
<label>705</label>
<onclick>ActivateWindow(NetworkSettings)</onclick>
</button>
<button id="149">
<description>System</description>
<label>13000</label>
<onclick>ActivateWindow(SystemSettings)</onclick>
</button>
</buttons>
</control>
</controlgroup>
</controls>
</window>
I need your input on why it won't scroll. Thanks!