Hi there.
Im trying to add just a "simple" list to my plugin containing some buddies.
I added the follogin code to my skinfile:
To be honest nearly just copy/paste from the example in wiki
After that I inserted the following code into my c#-project:
But nothing seems to happen. (I cant see any ListControl). Im quite sure this is something relly stupid but I just don't get it (and didn't find an answer here either).
So: Wheres my mistake?

Im trying to add just a "simple" list to my plugin containing some buddies.
I added the follogin code to my skinfile:
Code:
<window>
<id>4788</id>
<defaultcontrol>2</defaultcontrol>
<allowoverlay>yes</allowoverlay>
<controls>
<control>
<description>BackGround</description>
<type>image</type>
<id>1</id>
<posX>0</posX>
<posY>0</posY>
<width>720</width>
<height>576</height>
<texture>background.png</texture>
</control>
<control>
<description>an Image</description>
<type>image</type>
<id>1</id>
<posX>75</posX>
<posY>370</posY>
<texture>hover_my videos.png</texture>
</control>
<control>
<description>text label</description>
<type>label</type>
<id>1</id>
<posX>250</posX>
<posY>70</posY>
<label>Some text</label>
<font>font16</font>
<align>right</align>
<textcolor>ffffffff</textcolor>
</control>
<control>
<description>Connect to ICQ</description>
<type>button</type>
<id>2</id>
<posX>60</posX>
<posY>97</posY>
<label>Connect</label>
<onleft>2</onleft>
<onright>2</onright>
<onup>2</onup>
<ondown>3</ondown>
</control>
<control>
<description>Setup</description>
<type>button</type>
<id>3</id>
<posX>60</posX>
<posY>131</posY>
<label>Setup</label>
<onleft>2</onleft>
<onright>2</onright>
<onup>2</onup>
<ondown>4</ondown>
</control>
<control>
<description>doof</description>
<type>listcontrol</type>
<id>3</id>
<posX>60</posX>
<posY>151</posY>
<label>doof</label>
<onleft>2</onleft>
<onright>2</onright>
<onup>2</onup>
<ondown>4</ondown>
</control>
[B]<control>
<description>listcontrol</description>
<type>listcontrol</type>
<id>50</id>
<width>50</width>
<height>60</height>
<onleft>2</onleft>
<onright>51</onright>
<onup>2</onup>
<ondown>2</ondown>
<textcolor>FFFFFFFF</textcolor>
</control>[/B]
</controls>
</window>
To be honest nearly just copy/paste from the example in wiki
After that I inserted the following code into my c#-project:
Code:
[SkinControlAttribute(50)]
protected GUIListControl ListControl = null;
[...]
function dontcare() {
ListControl.Add(new GUIListItem("HOWDIE!"));
}
But nothing seems to happen. (I cant see any ListControl). Im quite sure this is something relly stupid but I just don't get it (and didn't find an answer here either).
So: Wheres my mistake?
Germany