Scalefactor positioning

Niggemann, Bernd Bernd.Niggemann at uni-wh.de
Wed Mar 8 18:57:09 EST 2023


> J. Landman Gay wrote
> I need to set the scalefactor of a stack and position it at the screenloc.


on mouseUp
   local tScaleFactor, tScreenLoc, tNewStackLoc
   put the scaleFactor of this stack into tScaleFactor
   put the screenLoc into tScreenLoc
   put item 1 of tScreenLoc / tScaleFactor into item 1 of tNewStackLoc
   put item 2 of tScreenLoc / tScaleFactor into item 2 of tNewStackLoc
   set the loc of this stack to tNewStackLoc
end mouseUp

This works for me

Kind regards
Bernd



More information about the use-livecode mailing list