Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-13-2008, 07:52 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
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.
Reply With Quote
  #2  
Old 10-13-2008, 08:03 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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
__________________
Reply With Quote
  #3  
Old 10-13-2008, 08:21 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Inverness View Post
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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