Different textAlign for each line in a 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
Garrett
Posts: 386
Joined: Sat Apr 08, 2006 8:15 am
Contact:

Different textAlign for each line in a field?

Post by Garrett » Mon Oct 06, 2008 9:20 am

Using a multi line field, is it possible to have separate lines with their own textAlign? or does the whole field have to share the same textAlign?

I tried

Code: Select all

set the textAlign of line 1 of field "editorbox" to center
but yeah, that won't work for me there.

I assume at this point that it's not possible, but as we've seen before, I've missed things in the documents that would otherwise prove me wrong.

Grateful for any help or info.

Thanks,
~Garrett

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Mon Oct 06, 2008 10:25 am

Hi Garrett,

This is currently impossible.

Some people have created solutions, though, which use one-pixel width spaces. This might be a way to display text, but editing the text is a big hassle.

You could use a browser object to dispaly text with multiple alignments, but again this is kind of a hassle if you want to be able to edit the text.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Garrett
Posts: 386
Joined: Sat Apr 08, 2006 8:15 am
Contact:

Post by Garrett » Mon Oct 06, 2008 8:27 pm

Alright, thanks a bunch Mark.

Yeah, needs to be editable. Not a major loss, was just trying to allow for more possibilities. :-)

~Garrett

Post Reply