PDA

View Full Version : multiline text shape


peliosis
08-24-2007, 08:11 PM
Hi, I found this strange thing...I can't find a way to create a multiline text shape.
even when:

shape1.text = sourceText --get a MULTILINE text from existing shape
shape2.text = sourceText --apply it to a brand new text shape flattens it


I tried "blahblah\n blah\n blahblahblah\n" but this tricky lil thingy just keeps on flattening and puts strange vertical bars in the text window of the shape.

Please help, my fileNamesWithTheirPathsOrNetworkPaths are quite long:D

pt

ofer_z
08-24-2007, 08:58 PM
Hi,

For some strage reason, the text object seems to use "\r" for line break.
try:
text text:"line1\rline2"

hOpe this helps,
o

peliosis
08-25-2007, 03:57 PM
Thanks!

That works but it produced some problems.
After myText.text = "blah\rblah\blah", the text in text field appears divided by strange vertical bars, not in lines, so when I try to get it out, there are strange invisible character in myBroghtBackText = myText.text.

CGTalk Moderation
08-25-2007, 03:57 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.