Script to right-align text within a text field box

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
abanowBUSTfGf
Posts: 63
Joined: Sat Dec 22, 2012 3:01 am

Script to right-align text within a text field box

Post by abanowBUSTfGf » Tue Jan 08, 2013 12:59 am

I have a text field and want the options of right and left-aligning the text within the box.
Does anyone have the script to do this? Tx.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Script to right-align text within a text field box

Post by dunbarx » Tue Jan 08, 2013 1:06 am

Check out the "textAlign" property in the dictionary. Also, in the inspector, you can set these in the "Text Formatting" pane.

Craig Newman

Post Reply