AW: AW: Where is the difference in resizeing stack?

Mark Schonewille m.schonewille at economy-x-talk.com
Fri Jul 25 08:40:21 EDT 2008


Hi Tiemo,

That won't work, because the window maybe be smaller or larger than  
the player. The change in window size may even be larger than the  
height or width of the player, causing the player to vanish  
altogether. Try this instead:

put the topleft of player "myPlayer" & comma & the width of this cd -  
32 & comma & the height of this cd - 32 into myRect
set the rect of player myPlayer to myRect

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
  for more info.

On 25 jul 2008, at 14:34, Tiemo Hollmann TB wrote:

> 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
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list