2006-01-20, 20:13
i did that the last week, here is my dialogfilestacking.xml
<window>
<id>2008</id>
<defaultcontrol>1</defaultcontrol>
<coordinates>
<system>1</system>
<posx>30</posx>
<posy>-10</posy>
</coordinates>
<controls>
<control>
<description>cd1</description>
<type>button</type>
<id>1</id>
<posx>550</posx>
<posy>20</posy>
<width>50</width>
<height>50</height>
<label>-</label>
<texturefocus>button-cd-focus.png</texturefocus>
<texturenofocus>button-cd-nofocus.png</texturenofocus>
<onleft>20</onleft>
<onright>2</onright>
</control>
<control>
<description>cd num label</description>
<type>label</type>
<id>400</id>
<width>160</width>
<align>right</align> <posx>620</posx> <posy>63</posy>
<label>cd-01</label>
<font>font12</font>
<textcolor>ffb2d4f5</textcolor>
<shadowcolor>ff000000</shadowcolor>
<visible>control.hasfocus(1)</visible>
</control>
<control>
<description>cd2</description>
<type>button</type>
<id>2</id>
<posx>550</posx>
<posy>20</posy>
<width>50</width>
<height>50</height>
<label>-</label>
<texturefocus>button-cd-focus.png</texturefocus>
<texturenofocus>button-cd-nofocus.png</texturenofocus>
<onright>3</onright>
<onleft>1</onleft>
</control>
<control>
<description>cd num label</description>
<type>label</type>
<id>400</id>
<width>160</width>
<align>right</align> <posx>620</posx> <posy>63</posy>
<label>cd-02</label>
<font>font12</font>
<textcolor>ffb2d4f5</textcolor>
<shadowcolor>ff000000</shadowcolor>
<visible>control.hasfocus(2)</visible>
</control>
<control>
<description>cd3</description>
<type>button</type>
<id>3</id>
<posx>550</posx>
<posy>20</posy>
<width>64</width>
<height>64</height>
<label>-</label>
<texturefocus>button-cd-focus.png</texturefocus>
<texturenofocus>button-cd-nofocus.png</texturenofocus>
<onright>4</onright>
<onleft>2</onleft>
</control>
<control>
<description>cd num label</description>
<type>label</type>
<id>400</id>
<width>160</width>
<align>right</align> <posx>620</posx> <posy>63</posy>
<label>cd-03</label>
<font>font12</font>
<textcolor>ffb2d4f5</textcolor>
<shadowcolor>ff000000</shadowcolor>
<visible>control.hasfocus(3)</visible>
</control>
.....
n.b. i have added a label to each button with "cd-01", "cd-02" etc... using the visible condition.
i added the window coordinates because i couldn't get the buttons coordinates to work properly, just the posy works but not the posx.
<window>
<id>2008</id>
<defaultcontrol>1</defaultcontrol>
<coordinates>
<system>1</system>
<posx>30</posx>
<posy>-10</posy>
</coordinates>
<controls>
<control>
<description>cd1</description>
<type>button</type>
<id>1</id>
<posx>550</posx>
<posy>20</posy>
<width>50</width>
<height>50</height>
<label>-</label>
<texturefocus>button-cd-focus.png</texturefocus>
<texturenofocus>button-cd-nofocus.png</texturenofocus>
<onleft>20</onleft>
<onright>2</onright>
</control>
<control>
<description>cd num label</description>
<type>label</type>
<id>400</id>
<width>160</width>
<align>right</align> <posx>620</posx> <posy>63</posy>
<label>cd-01</label>
<font>font12</font>
<textcolor>ffb2d4f5</textcolor>
<shadowcolor>ff000000</shadowcolor>
<visible>control.hasfocus(1)</visible>
</control>
<control>
<description>cd2</description>
<type>button</type>
<id>2</id>
<posx>550</posx>
<posy>20</posy>
<width>50</width>
<height>50</height>
<label>-</label>
<texturefocus>button-cd-focus.png</texturefocus>
<texturenofocus>button-cd-nofocus.png</texturenofocus>
<onright>3</onright>
<onleft>1</onleft>
</control>
<control>
<description>cd num label</description>
<type>label</type>
<id>400</id>
<width>160</width>
<align>right</align> <posx>620</posx> <posy>63</posy>
<label>cd-02</label>
<font>font12</font>
<textcolor>ffb2d4f5</textcolor>
<shadowcolor>ff000000</shadowcolor>
<visible>control.hasfocus(2)</visible>
</control>
<control>
<description>cd3</description>
<type>button</type>
<id>3</id>
<posx>550</posx>
<posy>20</posy>
<width>64</width>
<height>64</height>
<label>-</label>
<texturefocus>button-cd-focus.png</texturefocus>
<texturenofocus>button-cd-nofocus.png</texturenofocus>
<onright>4</onright>
<onleft>2</onleft>
</control>
<control>
<description>cd num label</description>
<type>label</type>
<id>400</id>
<width>160</width>
<align>right</align> <posx>620</posx> <posy>63</posy>
<label>cd-03</label>
<font>font12</font>
<textcolor>ffb2d4f5</textcolor>
<shadowcolor>ff000000</shadowcolor>
<visible>control.hasfocus(3)</visible>
</control>
.....
n.b. i have added a label to each button with "cd-01", "cd-02" etc... using the visible condition.
i added the window coordinates because i couldn't get the buttons coordinates to work properly, just the posy works but not the posx.