Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Bug Report (https://forums.graalonline.com/forums/forumdisplay.php?f=193)
-   -   GuiTextListCtrl.profile.align = "center"; (https://forums.graalonline.com/forums/showthread.php?t=78984)

zokemon 03-10-2008 02:31 PM

GuiTextListCtrl.profile.align = "center";
 
NPC Code:
new GuiTextListCtrl("MyList") {
resize(7, 42, 400, 134);
useownprofile = true;
profile.copyfrom(GuiTextListProfile);
profile.fontsize = 16;
profile.align = "center";
profile.autosizewidth = false;
fitparentwidth = false;
}



Doesn't work :confused:.

Text always stays aligned to the left...

cbk1994 03-10-2008 11:11 PM

Did you try justify?

profile.justify = "center";

Admins 03-11-2008 01:29 AM

It's always drawing it left-aligned

zokemon 03-11-2008 03:00 AM

Can you fix this though?

Quote:

Originally Posted by cbkbud (Post 1378780)
Did you try justify?

profile.justify = "center";

Justify does the same thing and for the record, yes.

cbk1994 03-11-2008 04:19 AM

Quote:

Originally Posted by zokemon (Post 1378814)
Can you fix this though?



Justify does the same thing and for the record, yes.

I know it does the same thing, I was wondering if you had tried it incase it works for some weird reason. ^^

zokemon 03-11-2008 11:57 AM

Quote:

Originally Posted by cbkbud (Post 1378838)
I know it does the same thing, I was wondering if you had tried it incase it works for some weird reason. ^^

Ahh, okay ^^.

napo_p2p 03-14-2008 09:43 AM

Yeah, just today I came across a list that I wanted right justified.

I approve.

zokemon 03-21-2008 06:23 PM

Can we get this fixed, please?

Stryke 05-19-2008 06:58 AM

while your at it please fix guitextedit.border

Crow 05-19-2008 01:49 PM

I'm requesting textoffset to be added to more things, especially buttons and all that stuff.

Admins 05-19-2008 01:53 PM

Quote:

Originally Posted by Stryke (Post 1391527)
while your at it please fix guitextedit.border

Text edit fields have special gfx, its always drawing a bitmap border with 8 slices (normal bitmap borders with border=5 have 9 slices). If you want different looking controls then use the gui styles.

cbk1994 05-20-2008 01:04 AM

Quote:

Originally Posted by Stefan (Post 1391538)
Text edit fields have special gfx, its always drawing a bitmap border with 8 slices (normal bitmap borders with border=5 have 9 slices). If you want different looking controls then use the gui styles.

Why not fix it instead of giving an alternative?

Admins 05-20-2008 12:58 PM

Quote:

Originally Posted by cbk1994 (Post 1391604)
Why not fix it instead of giving an alternative?

It's an alternative which fixes it. Changing the default behaviour would break existing stuff.

cbk1994 05-20-2008 02:12 PM

Quote:

Originally Posted by Stefan (Post 1391633)
It's an alternative which fixes it. Changing the default behaviour would break existing stuff.

Oh, I see what you meant. I thought you were saying it's broke so use something else. My bad :)


All times are GMT +2. The time now is 08:26 PM.

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