Keep stack proportions when resizing

Sean Cole (Pi) sean at pidigital.co.uk
Fri Oct 8 17:31:21 EDT 2021


on resizeStack
   send "ratioSet" to me in 0.01 sec
end resizeStack

on ratioSet
   lock screen
   put the topleft of this stack into tTL
   set the width of this stack to the height of me * 1.78 -- Ratio 16:9
   set the topleft of this stack to tTL
   unlock screen
end ratioSet



More information about the use-livecode mailing list