Thread: Icons
View Single Post
  #1  
Old 06-29-2009, 01:48 AM
The_Kez The_Kez is offline
N-Pulse Asst. Manager
The_Kez's Avatar
Join Date: Dec 2007
Posts: 106
The_Kez is on a distinguished road
Send a message via MSN to The_Kez
Icons

I wouldn't ask such a simple question without looking it up in the wiki first but what I found in the wiki doesn't seem to be working; maybe it's something I'm doing wrong.

I'm trying to get icons to show in my GuiTextListEntry...for some reason though it's not showing.

Here is the initialization of the TextListCtrl and parent:

PHP Code:
    new GuiScrollCtrl("ETControl_TextList2_Scroll") {
      
profile GuiBlueScrollProfile;
      
height 158;
      
hscrollbar "alwaysOff";
      
vscrollbar "dynamic";
      
width 128;
      
212;
      
51;

      new 
GuiTextListCtrl("ETControl_TextList2") {
        
profile GuiBlueTextListProfile;
        
height 32;
        
horizsizing "width";
        
width 124;
        
seticonsize1515 );
        
thiso.catcheventthis.name"onRightMouseDown""onDropDownMenu" );
      }
    } 
seticonsize works, because I can see it offsetting the text to the correct amount. I'm assuming that 'icon' is the textlistentry attribute which is reading as the image of the icon? This is what I tried:

PHP Code:
    with ETControl_TextList2.addrow(0"Team Guilds") ) {
      
icon "block.png"//as a test image
    

Maybe someone will see where my issue is?
Reply With Quote