field and dontWrap property

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
Jellobus
Posts: 317
Joined: Tue Dec 10, 2013 2:53 pm

field and dontWrap property

Post by Jellobus » Sun Mar 02, 2014 11:16 am

Hi people!

I am using LC with windows environment. I was trying to set the dontWrap of fld "fld" to false so that characters are not continuously typed in the line 1 forever.

How can I make fld wrap characters in its field? so characters will be return to next line to continue when it reaches the border of the field.
is it bug?? I tried with both script and inspector panel to set dontWrap to false. it seems not working at all. please advice :D

Have a great day,

Louis

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: field and dontWrap property

Post by dave.kilroy » Sun Mar 02, 2014 11:51 am

Hi Jellous

I think 'wrap' only applies to words, not chars (just checked and wrap doesn't work with a long string of chars in OSX either)

This lesson from RunRev http://lessons.runrev.com/s/lessons/m/2 ... -wrap-text gives pointers as to how you might write your own 'wrap' for chars (but if you were later going to make use of the string of chars you would have to first remove any spaces or crs you had inserted). If the lesson doesn't make sense come back here and ask questions...

Dave
"...this is not the code you are looking for..."

Jellobus
Posts: 317
Joined: Tue Dec 10, 2013 2:53 pm

Re: field and dontWrap property

Post by Jellobus » Sun Mar 02, 2014 12:27 pm

Thanks Dave! I will look at the link :)

Cheers,

Louis

Post Reply