2014-07-18, 22:33
Hi,
I can't figure out how to use the default spin controls and cannot find any option for a combo box. Can anyone point me in the right direction to usage, I have created a spincontrolex in the skin but have no obvious way of populating it's data. The regular spincontrol only seem's to be usable for textboxes/list scrolling and not as an option selection in the documentation.
I can't figure out how to use the default spin controls and cannot find any option for a combo box. Can anyone point me in the right direction to usage, I have created a spincontrolex in the skin but have no obvious way of populating it's data. The regular spincontrol only seem's to be usable for textboxes/list scrolling and not as an option selection in the documentation.
Code:
<control type="spincontrolex" id="1000">
<description>My first settings spin control</description>
<posx>0</posx>
<posy>0</posy>
<width>250</width>
<height>200</height>
<visible>true</visible>
<colordiffuse>FFFFFFFF</colordiffuse>
<label>test</label>
<font>font12</font>
<textcolor>FFFFFFFF</textcolor>
<disabledcolor>80FFFFFF</disabledcolor>
<onup>2</onup>
<ondown>3</ondown>
<onleft>1</onleft>
<onright>1</onright>
</control>
Code:
//code fails doesn't get a control
def onInit(self):
spincontrol = self.getControl(1000);
return;