How can I "fake" the appearance of merged cells (like in Excel)

Curry Kenworthy curry at
Sun Sep 18 18:20:54 CEST 2016


You can use math for that, either from scratch or starting from 
formattedrect. Easy if there's a consistent line height, but should be 
doable even if there isn't.

Depending on the content there are ways of faking stuff like this, but 
there were even more ways in the past with some LC versions. You know 
me, I love fields. :)

Best wishes,

Curry Kenworthy

Need custom software development or LiveCode help?


> As it turns out, a button works better than a field because its label is
> centered both vertically and horizontally.
> The issue is defining the size of the rect.  If the table field has the
> same content in item 3 of lines 5 to 7, I need to find the rect of those 3
> cells combined.  The formattedWidth and height only gives the size of the
> content, but I need the visible grid cell dimensions.
> ~Roger

More information about the use-livecode mailing list