Thread: GuiTextListCtrl
View Single Post
  #7  
Old 08-24-2005, 09:33 PM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Quote:
Originally Posted by ChibiChibiLuc
Who doesn't know how to make columns?

(Lawl. )
What you'd expect from the Homoerotic God of GraalScript z-z Yen!

Well anyway I figured it out so I'll share my knowledge with the rest of Graal.

In the GuiTextListCtrl, there is an option called 'columns'
NPC Code:

columns - string - of format "0 16", offset of the tabulators


Tabulators, hmm, let's see, that's "\t" in console text, right? Right! So let's do this:
NPC Code:

...Gui Script Here...
columns = "0 16 32 48";
...Other script stuff...
(GuiTextListCtrl.name).addText(str1 @ "\t\t" @ str2);


So yeah, that would mean that str2 would appear 32 pixels to the right of the left edge, and str1 would appear at the left edge. Those numbers, "0 16 32 48", are where, in pixels, the tabulators stop. So the first \t you add stops at a 16 pixel indent, then the second one stops at 32, then the third 48.

Note, if you add a fourth indent without specifying where the indent ends, it just won't show the text. So, if I do
NPC Code:

(GuiTextListCtrl.name).addText(str1 @ "\t\t\t\t" @ str2);


With the column setup I set before, then str2 would not show inside the GuiTextListCtrl.

I wonder if I've confused anyone o-o
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote