Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
geosmith
Wanderer


Joined: 23 Apr 2005
Posts: 57

PostPosted: Sat Mar 25, 2006 7:31 pm   

Alignment of text on button
 
I'm just wondering whether there's any way to change the alignment of text on a button? I'm using a seperator-style button as a second status bar, but would prefer the text to align to the left rather than centrally. Unfortunately the text displayed isn't constant, so simply following it with a set number of spaces isn't going to work.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Mar 28, 2006 1:59 pm   
 
Knowing the button length can you right pad your button title with spaces so it forces the words to the left?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Mar 29, 2006 2:19 am   
 
Yep, you can.

Caption = %concat(%repeat(" ", %eval(@MaxLength - @CaptionText)),@CaptionText)
_________________
EDIT: I didn't like my old signature
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net