> on resizeStack newW,newH,oldW,oldH
>   if the platform is "MacOS" then put 20 into tAdjust
>   else put 0 into tAdjust
>   if oldW = (item 3 of the windowBoundingRect)-tAdjust then
>     put "Maximized"
>   else
>     if newW = (item 3 of the windowBoundingRect)-tAdjust then
>       put "Restored"
>     else
>       put oldW,oldH,newW,newH
>     end if
>   end if
> end resizeStack

Whoops! Sorry - typo! "oldW" and "newW" should be reversed:

on resizeStack newW,newH,oldW,oldH
  if the platform is "MacOS" then put 20 into tAdjust
  else put 0 into tAdjust
  if newW = (item 3 of the windowBoundingRect)-tAdjust then
    put "Maximized"
  else
    if oldW = (item 3 of the windowBoundingRect)-tAdjust then
      put "Restored"
    else
      put oldW,oldH,newW,newH
    end if
  end if
end resizeStack

Thanks,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to