Tab width

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
Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

Tab width

Post by Da_Elf » Tue Dec 01, 2015 7:01 pm

Im trying to set some text to wrap inside a field that is setup like a table with some defined tab widths but i keep getting this
ahh.JPG

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

Re: Tab width

Post by dunbarx » Tue Dec 01, 2015 7:21 pm

Hi.

I believe that when you set the properties of a field to be a table field, the "dontWrap" is automatically set to "true". If I understand what you are after, you want one "tab" to wrap. A dataGrid can do this by playing with the row template properties. But DG's are daunting.

You will have to do one of two things. Either make adjacent fields, and manage the data, so if you wrapped a line in the third field (or any field), you would pad the other fields with returns so that they all lined up. This only takes a little work, and should be fun.

Or you can test the number of chars in a table field, and when that value exceeds the length of the space within a tab, add a return. You still need to pad the other "tabs".

I would make adjacent fields. They can all scroll together easily, of course.

Craig Newman

Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

Re: Tab width

Post by Da_Elf » Wed Dec 02, 2015 12:41 am

thanks craig. i ended up making my own system. i dont like the data grid

Post Reply