formatted text in table field clipped

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
neville
Posts: 49
Joined: Tue Apr 15, 2008 8:37 am

formatted text in table field clipped

Post by neville » Thu Dec 17, 2015 5:04 am

I have a table field with formatted cells: fixed line height of 48, default font size 30; it is intended for display on an external overhead screen. Without formatting the cells display correctly in 30 point textsize, so the entry certainly fits into the cell width provided by my tabstops. However if I format an entry so that a chunk of the entry is in 24pt or in a different color, either by using html formatting <font ... > <\font> etc, or by using set textsize, textcolor commands, the entry is clipped, chopping off the last character and a bit, even though the new text should now have smaller pixel length.

Under RunRev the display was correct. Upgrading to LiveCode7 produced this clipping, so it seems LC is computing the pixel length =formattedwidth incorrectly. But formattedWidth is read-only. Does anyone have a workaround?

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

Re: formatted text in table field clipped

Post by bn » Thu Dec 17, 2015 7:29 am

Hi Neville,

could you give a little more detail?
in which version of Runrev did it work.
Which version of LC 7 do you use and it does not work?

Is this text that was entered in the tableField using the old version? Is it text you fill in in LC 7?

I tried to reproduce what you describe but did not see the problem.

Note: in LC 5.5 the offset from the left and top for text has changed. But this should affect all text, not text that is set to a different color.

Best would be if you could post an example stack (you have to zip the stack before uploading it) that shows what you describe.

Kind regards
Bernd

neville
Posts: 49
Joined: Tue Apr 15, 2008 8:37 am

Re: formatted text in table field clipped

Post by neville » Thu Dec 17, 2015 9:53 am

Further to my post:

Turns out clipping only occurs when vertical grid is turned on; so a workaround is to draw the vertical grid lines manually. Still a bad bug.

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

Re: formatted text in table field clipped

Post by bn » Thu Dec 17, 2015 10:10 am

Hi Neville,

there were problems with clipping during the 7.x.x cycle, especially with vertical grid on. I reported some bugs against earlier versions. Could you try the latest version 7.1.1, released just yesterday.

As far as I see it is working now, could you test that?

Kind regards
Bernd

neville
Posts: 49
Joined: Tue Apr 15, 2008 8:37 am

Re: formatted text in table field clipped

Post by neville » Thu Dec 17, 2015 10:18 am

Many thanks Bernd - what great service!

I'm using 7.1.0. It tells me there are no updates available, so 7.1.1 can't have reached my server yet - I'll try again tomorrow .

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

Re: formatted text in table field clipped

Post by bn » Thu Dec 17, 2015 10:34 am

Hi Neville,

I had mixed results with the outo update.

here you can download your version of 7.1.1. Stable.

Kind regards
Bernd

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

Re: formatted text in table field clipped

Post by Klaus » Thu Dec 17, 2015 12:25 pm

Hi guys,

I NEVER used the auto update feature!
Bookmark this page and be always up-to-date :D
http://downloads.livecode.com/livecode/


Best

Klaus

neville
Posts: 49
Joined: Tue Apr 15, 2008 8:37 am

Re: formatted text in table field clipped

Post by neville » Thu Dec 17, 2015 1:24 pm

7.1.1 does indeed fix the clipping problem with vGrid

Thanks Bernd

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

Re: formatted text in table field clipped

Post by bn » Thu Dec 17, 2015 6:36 pm

Hi Neville,

I am glad for you that it is resolved and I am glad that Livecode fixed it. I am using it a lot.

The Tablefield had a lot of teething problems which is probably due to the fact that it accepts Unicode in LC 7. But also thanks to unicode one can now choose to left align, right align and center text in a column. A very handy feature for tabular data.

I am sorry that I forgot to paste the link to the download page. But luckily Klaus noticed :)

Kind regards
Bernd

Post Reply