textfield rtf

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

Post Reply
fredigertsch
Posts: 38
Joined: Mon Jan 03, 2011 5:42 pm

textfield rtf

Post by fredigertsch » Mon Feb 14, 2011 2:22 pm

How can I format the text in a textfield, like in a wordprocessor?
Best, Fredi

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Re: textfield rtf

Post by Janschenkel » Mon Feb 14, 2011 5:57 pm

Text fields in LiveCode are not full-fledged word processors; they can use a subset of HTML and RTF, but there's no support for embedded tables, paragraph alignment, etc. You can get and set the htmlText and rtfText of a field, read it from a file or write it to a file.

HTH,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

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

Re: textfield rtf

Post by BvG » Mon Feb 14, 2011 11:17 pm

you can also set the textstyle, textfont and textsize of whole fields or parts of the text of a field (that is called a chunk in LC)
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Post Reply