Changing a group visible boundaries by script

Mike Bonner bonnmike at gmail.com
Sun Mar 19 21:02:34 EDT 2017


When you shrink the group, it does indeed move things around, so you'll
need to do the math to adjust the vscroll and hscroll.  Something like
this..

*set* the hscroll of me to the hscroll of me -(the left of me - the left of
the target )

*set* the vscroll of me to the vscroll of me -( the top of me - the top of
the target)

On Sun, Mar 19, 2017 at 6:43 PM, dunbarx via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Hi.
>
> Untested, but something like:
>
> set the rect of grp "yourGroup" to the rect of control
> "yourControlToShrinkTo"
>
> Craig Newman
>
>
>
> --
> View this message in context: http://runtime-revolution.
> 278305.n4.nabble.com/Changing-a-group-visible-boundaries-by-
> script-tp4713184p4713186.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list