Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Setting the icon of an entry in a TextList (https://forums.graalonline.com/forums/showthread.php?t=57455)

ApothiX 02-03-2005 12:28 PM

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]


All times are GMT +2. The time now is 02:43 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.