Scalefactor positioning
J. Landman Gay
jacque at hyperactivesw.com
Wed Mar 8 20:56:17 EST 2023
Thanks Bernd. Since all scaled coordinates are translated to card
coordinates I guess I assumed the stack window position would be translated
too. In retrospect it makes sense.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 8, 2023 5:59:21 PM "Niggemann, Bernd via use-livecode"
<use-livecode at lists.runrev.com> wrote:
>> 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
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list