What about something like this?

take care,
randy

> On Oct 11, 2024, at 11:34 AM, Klaus major-k via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi Bob,
> 
>> Am 11.10.2024 um 18:29 schrieb Bob Sneidar via use-livecode 
>> <use-livecode@lists.runrev.com>:
>> 
>> Understood, but if he wants to set the rect of the group so that all the 
>> objects fit inside it, or at least from top to bottom, he should be able to 
>> get the rect of the group, then set the second and fourth items to the min 
>> and max of the other objects in the group. I think he has to set the locLoc 
>> to true first.
> 
> already tried this, does not work, it will always crop/clip the bottom of the 
> group.
> 
> I think I will either set the MARGINS for TOP and BOTTOM of the group to 
> negative values.
> Or just resize the group and set the scroll to the neccessary amount, thanks 
> Craig!
> 
>> Bob S
>> 
>>> On Oct 11, 2024, at 9:24 AM, Craig Newman via use-livecode 
>>> <use-livecode@lists.runrev.com> wrote:
>>> 
>>> Bob.
>>> I do not know why Klaus wants to truncate his groups, but I suspect it has 
>>> nothing to do with fitting them onto the card.
>>> 
>>> Craig
>>> 
>>>> On Oct 11, 2024, at 11:44 AM, Bob Sneidar via use-livecode 
>>>> <use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> Hmmm… I wrote a handler to determine the rect of all the visible objects 
>>>> on a card so I can set the stack rect to that plus margins. It involved 
>>>> getting the left, top, right and bottom as seperate values, of every 
>>>> visible object, then determining the min and max of each set of values as 
>>>> needed. You should be able to something similar. 
>>>> 
>>>> Bob S
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to