Justifying text in a text field?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Justifying text in a text field?

Post by peter.s » Fri Aug 01, 2008 9:36 am

Hi there,

Is there any way to fully justify text in a text field?

The text will be in a standard text field on one card, and on another card in a scrolling text field. When I put the text into the "Contents" window of the property inspector - then select "Text Format", my choices here are not many.

I can justify to the right, centre or left - but not fully justify (so the right and the left of the text are justified). Is there a way to do this in a script?

Something like: set the textAlign of field "MyText" to left and right

I know this doesn't work, but am I close?

P

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4016
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Post by bn » Fri Aug 01, 2008 10:38 am

Hi Peter,

apparently there is no way to fully justify text natively in Revolution.
It has been discussed on the list several times and there are workarounds.

you might want to look at

http://thread.gmane.org/gmane.comp.ide. ... cus=100322

look also at the whole thread
may be it gives you an idea how to start

I found it by clicking on documentation in Rev. There you have an option search. Click on Gmane. Search for 'justify text'
The search option is one of the hidden gems of Revolution :wink:

There are people here that know a lot more about text formatting and I shall be silent...

best regards

Bernd

peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Post by peter.s » Sat Aug 02, 2008 6:46 am

Thanks Bernd for this info. I read the whole thread and decided (considering my limited scripting skills) I don't really want to go there just yet.

I am happy to stick with unjustified text for the time being and keep my fingers crossed for a text editing update in Rev - or else revisit the issue again for my next project (when hopefully I'm more confident with my scripting).

Cheers,

P

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”