Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Icons in GuiTabCtrl (https://forums.graalonline.com/forums/showthread.php?t=82322)

Crow 10-13-2008 07:52 PM

Icons in GuiTabCtrl
 
There are some vars and functions concerning the icon width and height in GuiTabCtrl, though I didnt find any way to actually set an icon. How the hell do I do that?

Edit: I guess doing something like this:
PHP Code:

with (addRow(1"Foo")) {
  
icon "bar.png";


Would do the trick. Working on something else though, will test this in a couple of minutes.

Inverness 10-13-2008 08:03 PM

I believe you need to set the icon size in the GuiTabCtrl before the icons will appear. You would use seticonsize(width, height). Now then, the icon variable in each row is a TDrawingPanel, which means you for each row you would do icon.drawimage(x, y, filename).

http://wiki.graal.net/index.php/Crea...ent/GuiTabCtrl

Crow 10-13-2008 08:21 PM

Quote:

Originally Posted by Inverness (Post 1432643)
I believe you need to set the icon size in the GuiTabCtrl before the icons will appear. You would use seticonsize(width, height). Now then, the icon variable in each row is a TDrawingPanel, which means you for each row you would do icon.drawimage(x, y, filename).

http://wiki.graal.net/index.php/Crea...ent/GuiTabCtrl

That worked perfectly. Thanks a bunch <3


All times are GMT +2. The time now is 07:23 AM.

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