Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Columns & GUI's (https://forums.graalonline.com/forums/showthread.php?t=79058)

Toxen 03-17-2008 04:12 AM

Columns & GUI's
 
Well, Here is the problem, I have a GUI all set up but, when i'm using the GuiTextListCtrl I have no clue how to add the actual columns to it or name the columns, Since there isn't much on graal wiki or anyother places. Anyone mind helping.
-Thanks in advance.

coreys 03-17-2008 04:33 AM

Do you mean rows?

Toxen 03-17-2008 04:38 AM

Not rows, I'm not talking horizontal i'm talking vertical columns.

coreys 03-17-2008 04:42 AM

You can't make vertical columns that I know of.

Inverness 03-17-2008 05:14 AM

First\tSecond\tThird

Would put each word in a seperate column.
You use the columns variable in the control to define the columns.

columns = {0, 60, 120};

Would put the first column at 0, second at 60, and third at 120 pixels.
http://wiki.graal.net/index.php/Crea...uiTextListCtrl

Toxen 03-17-2008 11:36 PM

Doesn't seem to work Inverness

Here is the script snippet, Maybe that can help everything else is correct the columns just don't show.



new GuiTextListCtrl("Shop_List_of_weapons") {
profile = GuiBlueTextListProfile;
x = 13;
y = 105;
width = 324;


clearrows();
addrow(0,"Item_1");
addrow(1,"Item 2");
setSelectedRow(1);
columns = {0, 60, 120};

Admins 03-17-2008 11:42 PM

Instead of "Item_1" use "Item\t1"
It will display the "1" in the second column at pixel 60

Toxen 03-17-2008 11:48 PM

Thank you Stefan ;)


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

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