Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   List Bar Thingies (https://forums.graalonline.com/forums/showthread.php?t=62215)

Yen 11-11-2005 11:41 PM

List Bar Thingies
 
1 Attachment(s)
Does anyone know what kind of control the bar things at the top of lists are, if there is one?
The things you click to sort lists..
To be more specific, here's a screenshot with the thingers circled.

napo_p2p 11-11-2005 11:45 PM

I haven't seen anything like that with the GUI controls. If there isn't one, it would be a nice thing to add.

ApothiX 11-20-2005 02:34 AM

Quote:

GuiTextListCtrl (GuiArrayCtrl):
rows - object
clipcolumntext - boolean
columns - string - of format "0 16", offset of the tabulators
enumerate - boolean
fitparentwidth - boolean
groupsortorder - string
iconheight - integer (read only)
iconwidth - integer (read only)
resizecell - boolean
selected - object (read only)
sortcolumn - integer
sortmode - string
sortorder - string
addrow(int, str)
clearrows()
clearselection()
findtext(str) - returns integer
findtextid(str) - returns integer
getrowatpoint(int, int) - returns integer - row index
getrowidatpoint(int, int) - returns integer - row id
getrownumbyid(int) - returns integer
getselectedid() - returns integer - row id
getselectedrow() - returns integer - row index
getselectedtext() - returns string
insertrow(int, int, str)
makevisible(int)
makevisiblebyid(int)
removerow(int)
removerowbyid(int)
rowcount() - returns integer
seticonsize(int, int)
setselectedbyid(int)
setselectedrow(int)
sort()
Then set the first items text to "ColumnName1\tColumnName2\tEtc.." and the items with the same format ("Column1\tColumn2\tColumn3")

Yen 11-20-2005 04:37 AM

We don't want the top collumn to be selectable. We want it to be like a button.

Admins 11-20-2005 05:29 AM

The GuiTextListCtrl doesn't display column headers, but you can use columns (values separated by tabs "\t"), and you can add your own controls for the headers, you can use text labels or buttons or whatever

ApothiX 11-21-2005 03:02 PM

Quote:

Originally Posted by Stefan
The GuiTextListCtrl doesn't display column headers, but you can use columns (values separated by tabs "\t"), and you can add your own controls for the headers, you can use text labels or buttons or whatever

Or if you really want the buttons, just make GuiButtonCtrls, and make their click event sort the list by that column.


All times are GMT +2. The time now is 06:38 PM.

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