Re: FormattedHeight of a field and its contents

2018-02-05 Thread Bob Sneidar via use-livecode
ailto:use-livecode-boun...@lists.runrev.com] On Behalf > Of David Epstein via use-livecode > Sent: Friday, February 02, 2018 9:38 PM > To: use-livecode@lists.runrev.com > Cc: David Epstein > Subject: Re: FormattedHeight of a field and its contents > > Thanks for the responses on

RE: FormattedHeight of a field and its contents

2018-02-03 Thread Ralph DiMola via use-livecode
ecode-boun...@lists.runrev.com] On Behalf Of David Epstein via use-livecode Sent: Friday, February 02, 2018 9:38 PM To: use-livecode@lists.runrev.com Cc: David Epstein Subject: Re: FormattedHeight of a field and its contents Thanks for the responses on this. I used Bernd’s tool and did some more tests, and

Re: FormattedHeight of a field and its contents

2018-02-02 Thread David Epstein via use-livecode
Thanks for the responses on this. I used Bernd’s tool and did some more tests, and found some things that may be helpful to others. While the left and right margins of a field are meant literally (a 5 pixel left margin leaves 5 white pixels to the left of the text), the top margin is more comp

Re: FormattedHeight of a field and its contents

2018-02-01 Thread Paul Dupuis via use-livecode
What version of LiveCode on what platform are you trying this on? There have been a number of bugs related to object geometry calculations, including fields, over the years, found and fixed in various releases of LC. Some were platform and version of OS specific. On 1/31/2018 8:31 PM, David Epste

Re: FormattedHeight of a field and its contents

2018-02-01 Thread Bob Sneidar via use-livecode
I get 14 for line 1 and 22 for the field. Put that in your smipe and poke it! ;-) Bob S > On Jan 31, 2018, at 17:31 , David Epstein via use-livecode > wrote: > > Is there somewhere an explanation of how a field’s textSize, borderWidth, > margins, and formattedHeight interact? > > Accordi

Re: FormattedHeight of a field and its contents

2018-02-01 Thread BNig via use-livecode
Hi David, have a look at http://berndniggemann.on-rev.com/margins/marginsapp.livecode.zip It does not explain why but shows what influences the formattedHeight of a field when changing margins, border size, scrollbars, text height etc. Kind regards Bernd -- Sent from: http://runtime-revoluti