Re: Clipping a group by script

2024-10-12 Thread Klaus major-k via use-livecode
Hi Tom, > Am 12.10.2024 um 21:11 schrieb Tom Glod via use-livecode > : > > Klaus, > > its > > set the layerClipRect ... "layerClipRect"? To be honest I never heard this before, so thanks a bunch! :-D > On Sat, Oct 12, 2024 at 2:16 PM Klaus major-k via use-livecode < > use-livecode@lists.run

Re: Clipping a group by script

2024-10-12 Thread Tom Glod via use-livecode
Klaus, its set the layerClipRect ... On Sat, Oct 12, 2024 at 2:16 PM Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Randy, > > > Am 12.10.2024 um 20:09 schrieb Randy Hengst via use-livecode < > use-livecode@lists.runrev.com>: > > > > What about something like this?

Re: Clipping a group by script

2024-10-12 Thread Klaus major-k via use-livecode
Hi Randy, > Am 12.10.2024 um 20:09 schrieb Randy Hengst via use-livecode > : > > What about something like this? what exactly?  > > take care, > randy > > >> On Oct 11, 2024, at 11:34 AM, Klaus major-k via use-livecode >> wrote: >> >> Hi Bob, >> >>> Am 11.10.2024 um 18:29 schrieb Bob Sn

Re: Clipping a group by script

2024-10-12 Thread Randy Hengst via use-livecode
What about something like this?  take care, randy > On Oct 11, 2024, at 11:34 AM, Klaus major-k via use-livecode > wrote: > > Hi Bob, > >> Am 11.10.2024 um 18:29 schrieb Bob Sneidar via use-livecode >> : >> >> Understood, but if he wants to set the rect of the group so that all the >> obj

Re: Clipping a group by script

2024-10-11 Thread Klaus major-k via use-livecode
Hi Bob, > Am 11.10.2024 um 18:29 schrieb Bob Sneidar via use-livecode > : > > 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

Re: Clipping a group by script

2024-10-11 Thread Bob Sneidar via use-livecode
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 loc

Re: Clipping a group by script

2024-10-11 Thread Klaus major-k via use-livecode
Hi Craig and Bob, > Am 11.10.2024 um 18:24 schrieb Craig Newman via use-livecode > : > > Bob. > I do not know why Klaus wants to truncate his groups, yes, because that is nobodys business but mine! :-D > but I suspect it has nothing to do with fitting them onto the card. Exactly. > Craig >

Re: Clipping a group by script

2024-10-11 Thread Craig Newman via use-livecode
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 > wrote: > > Hmmm… I wrote a handler to determine the rect of all the visible objects on a > card

Re: Clipping a group by script

2024-10-11 Thread Bob Sneidar via use-livecode
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.

Re: Clipping a group by script

2024-10-11 Thread Craig Newman via use-livecode
Klaus. Answered in the forum: Klaus. If I make a group and set its height property to a value smaller than the original, the top of the group stays put, and the bottom is truncated, so that is half the battle. If I then play with the scroll of the group, I can control the visible portion. Cr

Re: Clipping a group by script

2024-10-11 Thread Klaus major-k via use-livecode
Hi Craig, > Am 11.10.2024 um 15:58 schrieb Craig Newman via use-livecode > : > > Klaus. > > Answered in the forum: thank you, already answered to your answer. :-) > Klaus. > > If I make a group and set its height property to a value smaller than the > original, the top of the group stays pu

Clipping a group by script

2024-10-11 Thread Klaus major-k via use-livecode
Hi friends, I want to clip a group by script but cannot get it to work!? See this image, it shows what i want to achieve: I want the content of the group to be clipped at the top and bottom. No problem when resizing manually but no dice by script so fa