Overflow text in a Data Grid table?

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
MichaelBluejay
Posts: 234
Joined: Thu Jul 01, 2010 11:50 am

Overflow text in a Data Grid table?

Post by MichaelBluejay » Fri Jan 15, 2021 12:12 pm

I don't suppose there's an easy way to get long text in one cell to overflow into the next cell in a Data Grid table, the way it would naturally in a spreadsheet?

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

Re: Overflow text in a Data Grid table?

Post by dunbarx » Fri Jan 15, 2021 2:53 pm

Michael.

Trevor is the only one who would really know, but I think not. You can maybe kludge this, though?

Craig

mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

Re: Overflow text in a Data Grid table?

Post by mrcoollion » Fri Jan 15, 2021 3:31 pm

I do not think it is an overflow in excel but more of an over-projection. Because there is no data in the overflown cell and as soon as you enter something in the overflown cell there is no overflow anymore.

Regards,

Paul

MichaelBluejay
Posts: 234
Joined: Thu Jul 01, 2010 11:50 am

Re: Overflow text in a Data Grid table?

Post by MichaelBluejay » Fri Jan 15, 2021 5:49 pm

Well, that’s what I want: when there’s no data in the next cell, I’d like the first cell to overflow into the next.

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

Re: Overflow text in a Data Grid table?

Post by dunbarx » Fri Jan 15, 2021 10:20 pm

Just like a table field, a dataGrid uses a "phantom" field to enter data. It is this that you see as the editable field, and which overlies the actual field of interest in the group. A kludge, assuming we do not hear from Trevor, is to create your own semi-permanent overlying field and manage it depending on the length of its text.

This seems both easily doable and very awkward.

Craig

Post Reply