rect w/ scaleFactor?

dunbarx at aol.com dunbarx at aol.com
Mon Feb 9 22:13:57 CET 2015


Richard.


Uh, oh.


Make a stack with one button and one decent sized field. In the button script:



on mouseUp
   put "" into fld 1
   put the rect of this stack into line 1 of fld 1
   set the scalefactor of this stack to ".5"
   put "0.5=" && the rect of this stack into line 2 of fld 1
   set the scalefactor of this stack to ".75"
   put "0.75=" && the rect of this stack into line 3 of fld 1
   set the scalefactor of this stack to "1.5"
   put "1.5=" && the rect of this stack into line 4 of fld 1
   set the scalefactor of this stack to "1"
end mouseUp


BUT, if you set the scale factor to something other than "1" in the inspector, and then:


answer the scaleFactor of this stack, you do get the correct, scaled rects.


Uh, oh


Craig



-----Original Message-----
From: Richard Gaskin <ambassador at fourthworld.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Mon, Feb 9, 2015 3:51 pm
Subject: rect w/ scaleFactor?


When the scaleFactor is set to any value other than 1, there appears to 
be no relationship between the stack's rect property and its apparent 
rect on screen.

"the effective rect..." doesn't help.

How can I obtain the actual on-screen rect of a stack whose scaleFactor 
is set to any value other than 1?

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com

_______________________________________________
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