Clipping a group by script

Bob Sneidar bobsneidar at iotecdigital.com
Fri Oct 11 12:29:28 EDT 2024


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. 

Bob S


> On Oct 11, 2024, at 9:24 AM, Craig Newman via use-livecode <use-livecode at 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 at 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
>> 
>> 



More information about the use-livecode mailing list