Auto Wrap Text

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
justintime
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 8
Joined: Fri Jul 15, 2011 1:27 am

Auto Wrap Text

Post by justintime » Sat Oct 08, 2011 5:31 pm

I am having trouble with my text fields not auto wrapping. The field is set to false in the property inspector yet when text is inputed it continues past the width of my text entry field. Any help would be appreciated.

Otis

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: Auto Wrap Text

Post by bn » Sat Oct 08, 2011 5:38 pm

Hi Otis,

check in the property inspector for the field if by any chance "don't wrap" is active. If so try to uncheck it. That is the only thing I can think of.

Kind regards

Bernd

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

Re: Auto Wrap Text

Post by Klaus » Sun Oct 09, 2011 6:54 pm

Hi Otis,

quick guess, maybe this applies to you: wrapping only happens with SPACES!
If your content does not have any SPACE in it, it won't wrap.


Best

Klaus

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: Auto Wrap Text

Post by dunbarx » Mon Oct 10, 2011 2:56 am

I bet Klaus has identified the problem. The field will not wrap a line unless there is a space somewhere in that line. There has to be a space in EACH line.

Try it.

You can work around this by playing with the formattedWidth. You can place hard returns at the appropriate character in each line, or force one if the length of that line exceeds that value.

Craig Newman

justintime
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 8
Joined: Fri Jul 15, 2011 1:27 am

Re: Auto Wrap Text

Post by justintime » Tue Oct 11, 2011 2:04 pm

Thank you all for your replies. It was the space issue on each line.

Post Reply