Clipping a group by script
Klaus major-k
klaus at major-k.de
Fri Oct 11 10:02:44 EDT 2024
Hi Craig,
> Am 11.10.2024 um 15:58 schrieb Craig Newman via use-livecode <use-livecode at lists.runrev.com>:
>
> 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 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.
>
> Craig
>
>> On Oct 11, 2024, at 6:17 AM, Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> 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:
>> <https://major-k.de/temp/group_clipping.png>
>>
>> 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 far.
>>
>> I tried many variations of boundingrect, rect, clipstorect,
>> lockloc, height and whatnot.
>>
>> Any hints very welcome! :-)
Best
Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de
More information about the use-livecode
mailing list