Re: formattedwidth/height does not work with some fonts

2020-10-07 Thread Klaus major-k via use-livecode
Hi Jaqueline, > Am 07.10.2020 um 16:55 schrieb J. Landman Gay via use-livecode > : > > I see this when the margins are too small to accommodate the ascenders of the > font. > What happens if you set the margins larger? thanks for the hint, setting a quite high margin is what we use as a workar

Re: formattedwidth/height does not work with some fonts

2020-10-07 Thread J. Landman Gay via use-livecode
I see this when the margins are too small to accommodate the ascenders of the font. What happens if you set the margins larger? -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 7, 2020 9:05:25 AM Klaus major-k via use-livecode

Re: formattedwidth/height does not work with some fonts

2020-10-07 Thread Klaus major-k via use-livecode
Hi Paul, > Am 07.10.2020 um 16:12 schrieb Paul Dupuis via use-livecode > : > > It is different symptoms from this bug > (https://quality.livecode.com/show_bug.cgi?id=22882) but it could be related > in the code? > > I recommend filing a bug report and I will be happy to add a note connecting

Re: formattedwidth/height does not work with some fonts

2020-10-07 Thread Paul Dupuis via use-livecode
It is different symptoms from this bug (https://quality.livecode.com/show_bug.cgi?id=22882) but it could be related in the code? I recommend filing a bug report and I will be happy to add a note connecting the two bugs. The more issues found surrounding "the formattedWhatever" functions, the

Re: formattedWidth

2014-07-10 Thread Dr. Hawkins
On Thu, Jul 10, 2014 at 6:32 PM, Peter Haworth wrote: > But the distance from > the left edge of the card to the leftmost control isn't included so using > formattedwidth to size the card will never work unless the leftmost control > is at the left edge of the card. > It will also not work if th

Re: formattedWidth

2014-07-10 Thread Peter Haworth
OK, I surrender! I think I now understand my confusion. The formattedWidth of a card is measured from the left edge of the leftmost control to the right edge of the rightmost control. But the distance from the left edge of the card to the leftmost control isn't included so using formattedwidth t

Re: formattedWidth

2014-07-10 Thread J. Landman Gay
So it's "all the visible parts of all objects". If some of an object is offscreen, that part isn't visible. Beaten but not yet dead. ;) On 7/10/2014, 5:52 PM, Scott Rossi wrote: Actually, the dictionary entry is correct. The property gets the width of a rectangle that encompasses all visible

Re: formattedWidth

2014-07-10 Thread Scott Rossi
Actually, the dictionary entry is correct. The property gets the width of a rectangle that encompasses all visible objects, not the rect of the objects. Horse = beaten yet? :-) Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/10/14 2:49 PM, "Peter Haworth" wrote: >

Re: formattedWidth

2014-07-10 Thread Peter Haworth
Yes, I think the problem is with the dictionary entry for formattedWidth since it claims the formattedWidth of a card is the rectangle that contains all its visible objects, which is not true. Pete lcSQL Software Home of lcStackBrowser

Re: formattedWidth

2014-07-10 Thread Peter Haworth
Thanks Scott. formattedRect doesn't quite work on its own because it positions the stack at the top left of the screen. However you put me on the right track because I can use the measurements in it to set the correct rectangle. Pete lcSQL Software Home of lcStackBrowser

Re: formattedWidth

2014-07-10 Thread Peter Haworth
Oh yes, plus ignoring hidden controls Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Jul 10, 2014 at 12:05 PM, Peter Haworth wrote: > Thanks Richmond, that's essentiall

Re: formattedWidth

2014-07-10 Thread Scott Rossi
FormattedWidth and height are purely width and height measurements. They don't provide object any position information. For object positions, use either the rect or formattedRect (cards/groups) properties. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/10/14 12:12 P

Re: formattedWidth

2014-07-10 Thread Scott Rossi
I think you meant the formattedRect property, not formattedWidth. If you check the formattedRect property, you should be able to get right/bottom positions you want without looping through the card objects. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 7/10/14 12:02 P

Re: formattedWidth

2014-07-10 Thread Richmond
I have just uploaded a newer version of my stack: http://forums.livecode.com/viewtopic.php?f=7&t=21023&p=107288#p107288 and I cannot for the life of me understand why the formattedWidth of the card does not correspond to item 1 of the loc of the 'furthest West' control, or its LEFT. Richmond.

Re: formattedWidth

2014-07-10 Thread Peter Haworth
Thanks Richmond, that's essentially what I'm doing except I use the rectangle of the stack instead of the height and width so the stack position doesn't change. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin

Re: formattedWidth

2014-07-10 Thread Peter Haworth
Hi SCott, Yes, I'm currently doing what you suggest by looking at all the controls on the card. What I don't understand is why the formattedWidth of a card doesn't return what's described in the dictionary. It appears to simply return the width of the widest control on the card when what it shoul

RE: formattedWidth

2014-07-10 Thread Ralph DiMola
Peter, I have observed this since the new field control was introduced in 5.somthing. I have to keep adjusting my code to take into account for minor changes as new LC versions get released. I have submitted a bug report. http://quality.runrev.com/show_bug.cgi?id=12176 Check out the demo stack. Th

Re: formattedWidth

2014-07-10 Thread Richmond
On 10/07/14 20:07, Peter Haworth wrote: Is there some other property that can be used to set the width of a stack to something that really does include all the objects on it? My extremely primitive recipe to do just that is here: http://forums.livecode.com/viewtopic.php?f=7&t=21023 Richm

Re: formattedWidth

2014-07-10 Thread Scott Rossi
I'm still not quite clear on what you're trying to accomplish. If you want to size a stack to the rect of all visible elements on a card, you need to check the extents of those objects -- the right-most and bottom-most edges -- not the space they occupy with formattedWidth or height. If I underst