Re: formattedHeight formattedWidth on android

2020-09-21 Thread scott--- via use-livecode
e a bug with formattedWidth and > formattedHeight of a field in android. I’m attempting to maximize (without > clipping) the textSize of a string in a fixed-size field. I have code that > works reliably in the IDE and on iOS but not on android. My use case seems to > be solvable by first

formattedHeight formattedWidth on android

2020-09-20 Thread scott--- via use-livecode
I’ve recently run into what feels like a bug with formattedWidth and formattedHeight of a field in android. I’m attempting to maximize (without clipping) the textSize of a string in a fixed-size field. I have code that works reliably in the IDE and on iOS but not on android. My use case seems

Re: FormattedHeight

2020-05-04 Thread J. Landman Gay via use-livecode
It's do-able though it requires some study. But it works very well and solves the problem. On 5/4/20 3:01 PM, scott--- via use-livecode wrote: Good to know that Trevor’s work was able to solve this problem! (Sounds as if it may not be a solution for the faint of heart yet.) — Scott On May 4,

Re: FormattedHeight

2020-05-04 Thread scott--- via use-livecode
Good to know that Trevor’s work was able to solve this problem! (Sounds as if it may not be a solution for the faint of heart yet.) — Scott > On May 4, 2020, at 11:04 AM, J. Landman Gay via use-livecode > wrote: > > On 5/2/20 12:25 PM, J. Landman Gay via use-livecode wrote: >> I think the solu

Re: FormattedHeight

2020-05-04 Thread J. Landman Gay via use-livecode
On 5/2/20 12:25 PM, J. Landman Gay via use-livecode wrote: I think the solution has to be in the engine. I'm in trouble. I am no longer in trouble. :) Huge thanks to Trevor for spending an inordinate amount of time with me over the weekend to get his DataView working in my stack. It's really a

Re: FormattedHeight

2020-05-03 Thread Richard Gaskin via use-livecode
J. Landman Gay wrote: > On 5/2/20 8:20 PM, Richard Gaskin via use-livecode wrote: >> LiveCode is nearly unmatched for making desktop apps, but for >> mobile development there are so many unfinished edges it's barely >> a contender for anyone not already heavily invested in LiveCode >> from deskto

Re: FormattedHeight

2020-05-03 Thread Graham Samuel via use-livecode
I agree that that’s what Widgets are for, but I don’t think there’s been enough input from the mother ship to ensure that all published widgets look as much as possible like ‘normal’ LC objects, with the expected properties and full documentation. Obviously some are very powerful and useful and

Re: FormattedHeight

2020-05-02 Thread J. Landman Gay via use-livecode
On 5/2/20 8:20 PM, Richard Gaskin via use-livecode wrote: LiveCode is nearly unmatched for making desktop apps, but for mobile development there are so many unfinished edges it's barely a contender for anyone not already heavily invested in LiveCode from desktop work. It would be reassuring if

Re: FormattedHeight

2020-05-02 Thread Richard Gaskin via use-livecode
J. Landman Gay wrote: > I think the solution has to be in the engine. I'm in trouble. Even if you find a workaround, I hope the engine team understands that it's a workaround, and has interest in letting us work in ways that are far less strangely counterintuitive that having to wrap a field i

Re: FormattedHeight

2020-05-02 Thread J. Landman Gay via use-livecode
oup combinations in the stack and they all work except this one, >> but the others are all shorter. >> >> I set the inner field to its full formattedHeight inside the group, which >> is shorter. The group has a behavior that scrolls the content. >&g

Re: FormattedHeight

2020-05-02 Thread Terry Judd via use-livecode
this one, >> but the others are all shorter. >> >> I set the inner field to its full formattedHeight inside the group, which >> is shorter. The group has a behavior that scrolls the content. >> >> I discovered today that if I set the beha

Re: FormattedHeight

2020-05-02 Thread J. Landman Gay via use-livecode
they all work except this one, but the others are all shorter. I set the inner field to its full formattedHeight inside the group, which is shorter. The group has a behavior that scrolls the content. I discovered today that if I set the behavior on the field instead of its enclosing group, I can

Re: FormattedHeight

2020-05-02 Thread scott--- via use-livecode
t;>> acceleratedRendering on mobile. The same setup is used for all the >>> field/group combinations in the stack and they all work except this one, >>> but the others are all shorter. >>> >>> I set the inner field to its full formattedHeight inside the

Re: FormattedHeight

2020-05-02 Thread J. Landman Gay via use-livecode
o its full formattedHeight inside the group, which is shorter. The group has a behavior that scrolls the content. I discovered today that if I set the behavior on the field instead of its enclosing group, I can make it scroll. But acceleratedRendering on a field is jerky and doesn't work very we

Re: FormattedHeight

2020-05-02 Thread scott--- via use-livecode
they all work except this one, but > the others are all shorter. > > I set the inner field to its full formattedHeight inside the group, which is > shorter. The group has a behavior that scrolls the content. > > I discovered today that if I set the behavior on the field inst

Re: FormattedHeight

2020-05-01 Thread J. Landman Gay via use-livecode
s are all shorter. I set the inner field to its full formattedHeight inside the group, which is shorter. The group has a behavior that scrolls the content. I discovered today that if I set the behavior on the field instead of its enclosing group, I can make it scroll. But acceleratedRendering

Re: FormattedHeight

2020-05-01 Thread scott--- via use-livecode
...@elementarysoftware.com booth1-800-615-0867 -- > On May 1, 2020, at 1:17 PM, J. Landman Gay via use-livecode > wrote: > > Is the formattedHeight of a group broken for anyone else? LC 9.6dp4 (and > possibly dp3). > >

RE: FormattedHeight

2020-05-01 Thread Ralph DiMola via use-livecode
via use-livecode Sent: Friday, May 01, 2020 4:17 PM To: LiveCode Mailing List Cc: J. Landman Gay Subject: FormattedHeight Is the formattedHeight of a group broken for anyone else? LC 9.6dp4 (and possibly dp3). I'm a little frantic. -- Jacqueline Landman Gay | jac...@hyperactives

FormattedHeight

2020-05-01 Thread J. Landman Gay via use-livecode
Is the formattedHeight of a group broken for anyone else? LC 9.6dp4 (and possibly dp3). I'm a little frantic. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com __

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
avoids clipping the content. With horizontal gridlines visible, a 6 pixel buffer makes the top row the same height as the other rows. And with a 6 pixel buffer the formattedHeight of the field will exactly match the formattedHeight of the field's content (although a non-zero borderwidth

Re: FormattedHeight of a field and its contents

2018-02-01 Thread Paul Dupuis via use-livecode
Epstein via use-livecode wrote: > Is there somewhere an explanation of how a field’s textSize, borderWidth, > margins, and formattedHeight interact? > > According to the dictionary entry for “formattedHeight”, a field’s > formattedHeight is calculated “including top and bottom marg

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 formatted

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

FormattedHeight of a field and its contents

2018-01-31 Thread David Epstein via use-livecode
Is there somewhere an explanation of how a field’s textSize, borderWidth, margins, and formattedHeight interact? According to the dictionary entry for “formattedHeight”, a field’s formattedHeight is calculated “including top and bottom margins”, while the formattedHeight of a chunk is

Re: margins ignored in formattedHeight for 8?

2016-11-11 Thread Dr. Hawkins
On Thu, Nov 10, 2016 at 1:39 PM, J. Landman Gay wrote: > Interesting...I'm working with formattedheight today too. I have a field > placed under an image where it can't be seen. It slides down sometimes and > moves everything below it down to accomodate. When I get the >

Re: margins ignored in formattedHeight for 8?

2016-11-10 Thread J. Landman Gay
Interesting...I'm working with formattedheight today too. I have a field placed under an image where it can't be seen. It slides down sometimes and moves everything below it down to accomodate. When I get the formattedheight of the group the controls are in, it returns the sa

margins ignored in formattedHeight for 8?

2016-11-10 Thread Dr. Hawkins
Is 8 ignoring margins in calculating formattedHeight? Placing a single line of text into a field, which is Helvitica Bold size 9, and margins of 0,6,0,0, it manages to return a formattedHeight of 7 when checking . . . uhh . . . . Am I missing something here? This worked for years in 5/7 for

formattedHeight of a button

2014-10-31 Thread Peter Haworth
There seems to be a problem with the formattedHeight property of a button. I'm assigning an icon to the button and leaving the showName property to true. By doing that, I can make the button high enough so that the button name shows under the icon. The formattedwidth property seems to work

Re: "height" limit (was FormattedHeight Limit!)

2012-08-07 Thread Rick Harrison
Hi Dan, I have several fields on one card so I don't want the field to display on the entire card, as it ruins everything else. I understand you are trying to use that as an example, but other than the display what should I be setting the rect to if not the size of the contents for scrolling? It

Re: FormattedHeight Limit!

2012-08-06 Thread Dan Friedman
d field for your iOS scroller, >> but rather scroll the field itself. In your scrollerDidScroll message, >> scroll the field, not the scroll of the group. This is what I use when I >> suspect the FormattedHeight may be larger than the allowable range. >> >>

Re: FormattedHeight Limit!

2012-08-06 Thread Thomas McGrath III
Obvious maybe, but why not just remove the first several lines when past the half way mark to the bottom of the field and vice versa when going up to the beginning of the field… Thomas J McGrath III 3mcgr...@comcast.net Lazy River Software http://lazyriver.on-rev.com On Aug 6, 2012, at 9:

Re: FormattedHeight Limit!

2012-08-06 Thread Rick Harrison
Hi Bob, The limit will keep the script from blowing up, but then the field won't display all of the data. The last several lines are cut off from the display. Thanks anyways, Rick On Aug 6, 2012, at 8:15 PM, Bob Sneidar wrote: > set the height of field "ViewingField5" of this card to max(tHe

Re: FormattedHeight Limit!

2012-08-06 Thread Bob Sneidar
set the height of field "ViewingField5" of this card to max(tHeight5, 32768) will that work? Bob On Aug 6, 2012, at 4:57 PM, Rick Harrison wrote: > set the height of field "ViewingField5" of this card to tHeight5 ___ use-livecode mailing list use-l

Re: FormattedHeight Limit!

2012-08-06 Thread Rick Harrison
up. This is what I use when I suspect > the FormattedHeight may be larger than the allowable range. > > Hope that helps! > > -Dan > > >> Hi there, >> >> I discovered that if I'm using large text >> in my scrolling field of size

Re: FormattedHeight Limit!

2012-08-06 Thread Dan Friedman
Rick, One thought is to not use scroll the grouped field for your iOS scroller, but rather scroll the field itself. In your scrollerDidScroll message, scroll the field, not the scroll of the group. This is what I use when I suspect the FormattedHeight may be larger than the allowable range

Re: FormattedHeight Limit!

2012-08-06 Thread Scott Rossi
ed that if I'm using large text > in my scrolling field of size 24, and I > have 1043 lines in my field, that the > Height of my field using FormattedHeight > equals 33,390 which apparently goes > beyond a limit of 32,768 and causes > an unreported error in the iOS Simulator

FormattedHeight Limit!

2012-08-06 Thread Rick Harrison
Hi there, I discovered that if I'm using large text in my scrolling field of size 24, and I have 1043 lines in my field, that the Height of my field using FormattedHeight equals 33,390 which apparently goes beyond a limit of 32,768 and causes an unreported error in the iOS Simulator. I r

Re: does Data Grid have a formattedHeight property?

2012-04-09 Thread Chris Sheffield
Thank you! I figured it had to be there somewhere. Missed it on my first pass through the docs. On Apr 9, 2012, at 4:34 PM, zryip theSlug wrote: > Hi Chris, > > On Mon, Apr 9, 2012 at 11:55 PM, Chris Sheffield wrote: >> I'm trying to set the height of a data grid based on

Re: does Data Grid have a formattedHeight property?

2012-04-09 Thread zryip theSlug
Hi Chris, On Mon, Apr 9, 2012 at 11:55 PM, Chris Sheffield wrote: > I'm trying to set the height of a data grid based on the formattedHeight > property, but as far as I can tell, the formattedHeight of a data grid > returns the height. Is this a bug or by design? If by design,

does Data Grid have a formattedHeight property?

2012-04-09 Thread Chris Sheffield
I'm trying to set the height of a data grid based on the formattedHeight property, but as far as I can tell, the formattedHeight of a data grid returns the height. Is this a bug or by design? If by design, is there some other way I can accomplish this? Trevor, are you listening? :-) T

Re: What is up with FormattedHeight?

2012-02-10 Thread BNig
urns the bounding rect of the actual letters in the field -- which is different from the formattedRect -- based on a script by Scott Rossi -- http://runtime-revolution.278305.n4.nabble.com/What-is-up-with-FormattedHeight-tt4360344.html#a4372671 lock screen ## CREATE IM

Re: What is up with FormattedHeight?

2012-02-10 Thread Scott Rossi
Actually, I may be wrong but I seem to recall the script I posted being a variation of something written by Trevor DeVore. Just to keep the credits rolling along... Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Howard Bornstein wrote: > Wow, thank you Ken and Scott

Re: What is up with FormattedHeight?

2012-02-10 Thread Howard Bornstein
xtRect > > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > > > Recently, Ken Corey wrote: > > > On 06/02/2012 03:30, Howard Bornstein wrote: > >> I need to find the smallest rectangle that will enclose a

Re: What is up with FormattedHeight?

2012-02-09 Thread Scott Rossi
xtRect Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Ken Corey wrote: > On 06/02/2012 03:30, Howard Bornstein wrote: >> I need to find the smallest rectangle that will enclose a line of text of >> arbitrary text size in a field. I thought I coul

Re: What is up with FormattedHeight?

2012-02-09 Thread Ken Corey
On 06/02/2012 03:30, Howard Bornstein wrote: I need to find the smallest rectangle that will enclose a line of text of arbitrary text size in a field. I thought I could use formattedheight and formattedwidth to do this but it doesn't seem to be working. I'm very perplexed too.

Re: What is up with FormattedHeight?

2012-02-08 Thread Howard Bornstein
That makes sense. I was complaining about formattedHeight for fields. For buttons it seems useful. On Wed, Feb 8, 2012 at 2:26 PM, Bob Sneidar wrote: > One thing I use it for is programmatically setting the height of menu > buttons. I find the default size to be too large for a busy form

Re: What is up with FormattedHeight?

2012-02-08 Thread Bob Sneidar
One thing I use it for is programmatically setting the height of menu buttons. I find the default size to be too large for a busy form, so I set the height to the formattedHeight of the text of the button. I have a utility that "drops" a field, button or menu onto a card and links i

Re: What is up with FormattedHeight?

2012-02-08 Thread Howard Bornstein
Right. As I've been able to determine, the textheight is used to create the leading and the formattedheight uses the font metrics, the textheight (if set) and the field margins (if set). On Mon, Feb 6, 2012 at 9:09 AM, Bob Sneidar wrote: > If you have ever had to edit type faces, you w

Re: What is up with FormattedHeight?

2012-02-08 Thread Howard Bornstein
Thanks for your reply. As a graphic designer, I know about ascenders, descenders, x-height, etc. However, I had thought that formattedHeight adjusted the field height to the size of the text being displayed, not to the min and max of the entire type face. I created a field with the entire

Re: What is up with FormattedHeight?

2012-02-06 Thread Bob Sneidar
e in a field. I thought I could use formattedheight and > formattedwidth to do this but it doesn't seem to be working. > > The dictionary says about FormattedHeight: > > Use the *formattedHeight* property to determine how much vertical space an > object needs. > > Th

Re: What is up with FormattedHeight?

2012-02-06 Thread Paul Hibbert
Howard, > Why doesn't the formattedHeight of a field just do this automatically? Why > does it include extra space at the top and bottom of the field? > What are the relationships among text size, text height, and field height > that will allow the field to adjust to exactly the

Re: What is up with FormattedHeight?

2012-02-06 Thread AndyP
de (v1.4.1 released 26/08/2011) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/What-is-up-with-FormattedHeight-tp4360344p4360697.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailin

What is up with FormattedHeight?

2012-02-05 Thread Howard Bornstein
I need to find the smallest rectangle that will enclose a line of text of arbitrary text size in a field. I thought I could use formattedheight and formattedwidth to do this but it doesn't seem to be working. The dictionary says about FormattedHeight: Use the *formattedHeight* proper

Re: formattedHeight and scrollbars

2012-02-02 Thread BNig
Hi Howard, I've sent you the stack and here it is for anyone interested in playing around with the parameters of a field that affect the formattedHeight of that field. http://berndniggemann.on-rev.com/margins/marginsapp.livecode.zip Kind regards Bernd On Wed, Feb 1, 2012 at 1:

Re: formattedHeight and scrollbars

2012-02-01 Thread Howard Bornstein
> > -- > Regards, > > Howard Bornstein > --- > www.designeq.com > > > On Wed, Feb 16, 2011 at 3:37 PM, BNig wrote: > >> >> Hi Claus, >> >> I made a little revlet that shows what impacts the formattedHeight of a >> field: >> >>

Re: formattedHeight and scrollbars

2012-02-01 Thread Howard Bornstein
what impacts the formattedHeight of a > field: > > http://berndniggemann.on-rev.com/marginsrevlet/ > > among other things the scrollbars and their size furthermor the margins, > the > borderwith the textsize and the textheight. I hope I did not forget > anything. Before 4.5 o

Re: formattedheight and formattedwidth

2011-06-27 Thread Bob Sneidar
those numbers or remember to set the stack height and width so I > started looking for a generic method which I could put in the stack script > and I'd never have to worry about changing it again. > > The formattedheight and formattedwidth properties ended up being the way to >

Re: formattedheight and formattedwidth

2011-06-27 Thread Pete
looking for a generic method which I could put in the stack script and I'd never have to worry about changing it again. The formattedheight and formattedwidth properties ended up being the way to do it, suitably adjusted to account for margins on each side of the card. The code I now use is: se

Re: formattedheight and formattedwidth

2011-06-27 Thread Richard Gaskin
Pete wrote: OK I see what you mean about the formatted versions of height/width. The straight height and width properties don't seem to come anywhere close to working even allowing for menu bar issues (I'm on OS X). They set the height/width to what they were for the previous card opened in the

Re: formattedheight and formattedwidth

2011-06-26 Thread Pete
Yep, that's what I was doing initially but was looking for a way to make it happen without actually knowing the height and width. I think I have this working now. I made sure that the topmost control on each card always had it's topleft set to 10,10 , then I add 20 to each of the formatted height

Re: formattedheight and formattedwidth

2011-06-26 Thread Robert Brenstein
On 26.06.2011 at 17:42 Uhr -0700 Pete apparently wrote: I think I will have to use the formatted height and width and be consistant about how much room is around the borders of the controls on each card. If your cards vary in size but are static, that is not changed dynamically by users, the

Re: formattedheight and formattedwidth

2011-06-26 Thread Pete
n) when it says: >> >> If you specify a card or group, the *formattedHeight* reports the >> height of a rectangle that includes all objects in that card or group >> whose >> visible property is true. >> > > It seems accurate to me. The formatted measurem

Re: formattedheight and formattedwidth

2011-06-26 Thread J. Landman Gay
On 6/26/11 2:52 PM, Pete wrote: Thanks. I guess the dictionary is misleading (yet again) when it says: If you specify a card or group, the *formattedHeight* reports the height of a rectangle that includes all objects in that card or group whose visible property is true. It seems

Re: formattedheight and formattedwidth

2011-06-26 Thread Pete
Thanks. I guess the dictionary is misleading (yet again) when it says: If you specify a card or group, the *formattedHeight* reports the height of a rectangle that includes all objects in that card or group whose visible property is true. I tried this: set the height of this stack to

Re: formattedheight and formattedwidth

2011-06-25 Thread J. Landman Gay
On 6/25/11 2:17 PM, Pete wrote: I have a number of cards in the same substack that need to be displayed with different heights and widths. In the preOpenStack handlerr, I have: set the height of this stack to the formattedheight of this card set the width of this stack to the formattedwidth of

formattedheight and formattedwidth

2011-06-25 Thread Pete
I have a number of cards in the same substack that need to be displayed with different heights and widths. In the preOpenStack handlerr, I have: set the height of this stack to the formattedheight of this card set the width of this stack to the formattedwidth of this card The height and width

Re: formattedHeight and scrollbars

2011-03-05 Thread Claus Dreischer
Fixed with 4.6.0-dp-6. http://quality.runrev.com/qacenter/show_bug.cgi?id=9404 We can now use the formattedHeight (or Width) reliably to decide if a field needs scrollbars or not. Regards, Claus. Am 16.02.11 22:03, schrieb Claus Dreischer: > Hi, > > I'm a bit con

Re: formattedHeight and scrollbars

2011-02-17 Thread Claus Dreischer
ght from the formattedHeight. The height of the filed does not change, so either you subtract the scrollbarwidth from the height of the field, or you add the scrollbarwidth to the formattedHeight to get "the height needed by an object to display its full contents without scrolling" (Dicti

Re: formattedHeight and scrollbars

2011-02-16 Thread dunbarx
A fun revlet. The way you made it, it can be seen that a horizontal scrollbar not only takes up its own height, but intrudes that amount into the lower part of the field as well. That is why it takes twice its height from the formattedHeight. But when I just add a hor scrollbar to a field

Re: formattedHeight and scrollbars

2011-02-16 Thread BNig
Hi Claus, I made a little revlet that shows what impacts the formattedHeight of a field: http://berndniggemann.on-rev.com/marginsrevlet/ among other things the scrollbars and their size furthermor the margins, the borderwith the textsize and the textheight. I hope I did not forget anything

formattedHeight and scrollbars

2011-02-16 Thread Claus Dreischer
Hi, I'm a bit confused with the formattedHeight of a field and an additional scrollbar: The content of a field has the formattedHeight of e.g. 74 The scrollbarwidth is set to 10, but the hScrollbar is not enabled yet. Now when i enable the hScrollbar, the formattedHeight of that field jum