![]() |
Having trouble with GuiTextListCtrl
I'm making a party menu for Thamhic, and inside it I want a list of all the players in the party. But I'm having a bit of trouble with the GuiTextListCtrl()
PHP Code:
|
dunno but maybe you have to do
profile = GuiBlueTextListProfile; and/or profile = GuiBlueScrollProfile; |
Well, it would be the default profiles anyways, but I did try that earlier, with no luck.
|
set height :P
|
Yeah, I tried that too, and it didn't work.
|
well, dunno worked for me lol
|
Try this example inside the scroll - does it work?
PHP Code:
|
Nope...here's the entire code:
PHP Code:
|
Something is "wrong" with your Scroll profile. I haven't really tried to find out what exactly, but if I add this to the ScrollCtrl it works.
PHP Code:
|
Didn't work. D: I had tried that already...
|
Odd, as it worked when I was testing it. Try replacing your GuiScrollCtrl with this:
PHP Code:
|
Hmm, yes...wtf. o.o
Edit: It was the profile of the scroll o.0 |
Like I said in my last post that you said wasn't working ^^
|
Yeah, but for some reason it didn't work before, but then it did after awhile. o.0
|
Quotations! :)
new GuiScrollCtrl("PartyListScroll") {... new GuiTextListCtrl("PartyList") {... |
Quotes are for pansies ;o
Well, they aren't needed, anyways. |
Quote:
|
Did you even try it to see if it fixed the problem?
EDIT: tested it, quotations=fix. |
Profiles are objects: quotations shouldn't matter at all...
|
Well I put it into a WNPC and I had the problem he described. Wrapped the names in quotations and it fixed the problem.
|
Quotations are only needed when you put a space in the name
eg. needed new GuiWindowCtrl( "My Window") { not needed new GuiWindowCtrl( My_Window) { other than the space it doesn't matter at all if you have them or not |
Anytime you make an object in Graal the only parameter required for the constructor is the name of the object, the global reference to the object is made from the name which is a string.
And don't put spaces in variable names, jeeze thats horrible considering the lack of documentation of Graal, I think Stefan would be the only one who actually knows how those are handled if they work at all. The only reason it even works without the quotes is because Graal creates a variable if there isn't one. |
Spaces in variables does work.
Bad example (doesnt work): PHP Code:
PHP Code:
|
| All times are GMT +2. The time now is 02:08 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.