2009-01-25, 00:50
Hi,
I searched the forum and the wiki, but couldn't find a straight forward answer regarding the use of edit control with Python.
If I understand correctly there's no way to reference the control from within Python, I get error: "unknown control type for python" when I execute: self.getControl(CONTROL_TW).
Here's a snippet:
<control type="edit" id="1008">
<description>Tw text box</description>
<posx>20</posx>
<posy>125</posy>
<width>460</width>
<height>30</height>
<font>font14</font>
<textcolor>FFFFFFFF</textcolor>
<pulseonselect></pulseonselect>
<onup></onup>
<ondown>50</ondown>
<onleft></onleft>
<onright>1009</onright>
</control>
However, I read about Kai offering this functionality and see I see the use of direct edit all over the place when I use the different skins.
Is there any way to implement this functionality? Allowing the member to edit the text directly without a keyboard?
Thanks.
I searched the forum and the wiki, but couldn't find a straight forward answer regarding the use of edit control with Python.
If I understand correctly there's no way to reference the control from within Python, I get error: "unknown control type for python" when I execute: self.getControl(CONTROL_TW).
Here's a snippet:
<control type="edit" id="1008">
<description>Tw text box</description>
<posx>20</posx>
<posy>125</posy>
<width>460</width>
<height>30</height>
<font>font14</font>
<textcolor>FFFFFFFF</textcolor>
<pulseonselect></pulseonselect>
<onup></onup>
<ondown>50</ondown>
<onleft></onleft>
<onright>1009</onright>
</control>
However, I read about Kai offering this functionality and see I see the use of direct edit all over the place when I use the different skins.
Is there any way to implement this functionality? Allowing the member to edit the text directly without a keyboard?
Thanks.