Justified text

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

Justified text

Post by bsouthuk » Mon Apr 12, 2010 1:18 pm

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 » Mon Apr 12, 2010 1:33 pm

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 » Mon Apr 12, 2010 1:39 pm

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: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Justified text

Post by Klaus » Mon Apr 12, 2010 3:03 pm

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 » Mon Apr 12, 2010 6:19 pm

OK thanks for that Klaus

Dan

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

Re: Justified text

Post by fpierron » Mon Apr 18, 2011 2:38 pm

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

I use 4.6 version.

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Justified text

Post by Klaus » Mon Apr 18, 2011 3:22 pm

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 » Mon Apr 18, 2011 3:30 pm

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: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Justified text

Post by Klaus » Mon Apr 18, 2011 3:33 pm

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

Post Reply