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: Klaus, FourthWorld, heatherlaine, 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 »

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: 10509
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx »

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