![]() |
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:
PHP Code:
|
If I recall correctly, icon is actually a TDrawingPanel, so you will have to do something like
PHP Code:
|
PHP Code:
Can anyone explain why it has to be done this way? |
It has to do with objects. ^^
|
Quote:
|
ETControl_TextList2 <--- That's your TextList Control Object
.addrow( 0, "Team Guilds") <- You calling the command "addrow" which is returning a row object .icon <-- You are getting the object "icon" from the previous row object .drawimage(0, 0, "block.png"); <-- You are drawing an image, "block.png" at positon x: 0, y: 0 onto the "icon" object. |
| All times are GMT +2. The time now is 01:44 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.