Justified text

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

Justified text

Post by bsouthuk »

Hi All

I have lots of cards with lots of text and looks untidy as I dont know how to Justify the text. IS this possible?

Cheers

Dan
BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Justified text

Post by BvG »

see the textAlign property. Note that you can set this only for a whole field, not for chunks within a field.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

Re: Justified text

Post by bsouthuk »

According to the textAlign property you can only justify text to left, centre and right.

I'm looking to justify both left and right like you can in Word - doesn't seem to be possible with Rev?
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Justified text

Post by Klaus »

Hi Dan,

yes, this is currently not possible in Rev, but it will in Rev 4.5 which is currently in alpha state!


Best

Klaus
bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

Re: Justified text

Post by bsouthuk »

OK thanks for that Klaus

Dan
fpierron
Posts: 56
Joined: Thu Dec 16, 2010 11:12 am
Contact:

Re: Justified text

Post by fpierron »

It seems to be impossible to have justified text in a label text.
Any easy possibilities ?

I use 4.6 version.
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Justified text

Post by Klaus »

Hi fpierron,

"Label fields" are just "ordinary" fields which have their "textalign" property pre-set to "right"!
You can change this in the "Text Formating" section of the "Inspector" for this field.


Best

Klaus
fpierron
Posts: 56
Joined: Thu Dec 16, 2010 11:12 am
Contact:

Re: Justified text

Post by fpierron »

Hi Klaus,

Thanks for the reply but i knew that. What I want is to "justify" left AND right the text, not only right or left or center, but the 4th way justified text.
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Justified text

Post by Klaus »

Ah, I see, no that is not possible in LiveCode, sorry.
Post Reply