View Single Post
  #1  
Old 02-03-2005, 12:28 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Setting the icon of an entry in a TextList

I am having difficulties setting the icon of an entry in a TextList control, I have tried doing many things, and I think the closest I have come to the correct method would be:

NPC Code:
TextList.rows[0].icon.drawimagerectangle(0,0,"filename",0,0,16,16)  ;



but that doesn't seem to work :/

Any information regarding this subject would be much appreciated.

[edit]
The solution came to me in a dream! I had to use seticonsize(w,h) before making that drawimagerectangle call
[/edit]
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")

Last edited by ApothiX; 02-03-2005 at 10:43 PM.. Reason: Found Solution
Reply With Quote