2009-07-22, 13:50
I want to set the label text of a control when i display the window.
I use the following code:
But this gives me this error:
TypeError:Non-Existent Control 5
in my windowxml file i have a label control with id="5":
[HTML]
<control type="label" id="5">
<animation effect="slide" start="600,0" end="0,0" time="200">WindowOpen</animation>
<animation effect="slide" start="0,0" end="600,0" time="200">WindowClose</animation>
<description>Feed Label</description>
<width>427</width>
<posx>244</posx>
<posy>70</posy>
<align>center</align>
<aligny>center</aligny>
<label>Feeds loading...</label>
<font>font13</font>
<textcolor>FFFFFFFF</textcolor>
</control>
[/HTML]
Does anyone know why this does not work.
I am trying to show an info dialog when pressing a listitem, so i use windowxml to create a custom dialog (dialog.yesno, dialog.ok is not good for me, no multiple lines)
Is this the right way?
thanks in advance
I use the following code:
PHP Code:
ctrl = self.getControl(5)
TypeError:Non-Existent Control 5
in my windowxml file i have a label control with id="5":
[HTML]
<control type="label" id="5">
<animation effect="slide" start="600,0" end="0,0" time="200">WindowOpen</animation>
<animation effect="slide" start="0,0" end="600,0" time="200">WindowClose</animation>
<description>Feed Label</description>
<width>427</width>
<posx>244</posx>
<posy>70</posy>
<align>center</align>
<aligny>center</aligny>
<label>Feeds loading...</label>
<font>font13</font>
<textcolor>FFFFFFFF</textcolor>
</control>
[/HTML]
Does anyone know why this does not work.
I am trying to show an info dialog when pressing a listitem, so i use windowxml to create a custom dialog (dialog.yesno, dialog.ok is not good for me, no multiple lines)
Is this the right way?
thanks in advance