AW: AW: Where is the difference in resizeing stack?
Tiemo Hollmann TB
toolbook at kestner.de
Fri Jul 25 08:34:06 EDT 2008
Hi Mark,
I resize by the absolute diff of the windwow resize, like:
on resizeStack pNewW,pNewH,pOldW,pOldH
put pNewW - pOldW into tWDiff
put pNewH - pOldH into tHDiff
put item 1 of the rect of player "myPlayer" into tL4
put item 2 of the rect of player "myPlayer" into tT4
put ((item 3 of the rect of player "myPlayer") + tWDiff) into tR4
put ((item 4 of the rect of player "myPlayer") + tHDiff) into tB4
set the rect of player "myPlayer" to tL4,tT4,tR4,tB4
so the resize works to the right and bottom
any idea?
Thanks, Tiemo
> -----Ursprüngliche Nachricht-----
>
> Hi Tiemo,
>
> That must be a mistake in your script. Do you calculate the sizes
> relative to the window size or do you calculate the change in window
> size as a percentage and use that to change the sizes of your objects?
> I would always calculate the size of objects relative to the window
> size.
>
> Perhaps you could post your resizing script?
>
> --
> Best regards,
>
> Mark Schonewille
More information about the use-livecode
mailing list