screen math, stacks, fields, and effective screenRect

Paul Hibbert paul at livecode.org
Sat Jan 17 21:45:53 EST 2015


It depends if your stack has a Stack Menu or not, try…

  put (the top of this stack) - (the effective top of this stack) -- With no Stack Menu =22 with a Stack Menu = 0

Paul


> On Jan 17, 2015, at 5:40 PM, Dr. Hawkins <dochawk at gmail.com> wrote:
> 
> On Sat, Jan 17, 2015 at 4:17 PM, Scott Rossi <scott at tactilemedia.com> wrote:
> 
>> The difference you're seeing is likely due to the height of the stack
>> including its titlebar versus the height of the card region only of the
>> stack.
>> 
>> You might try seeing the entries in the dictionary for localLoc and
>> globalLoc, used for converting global positions to local, and vice versa.
>> 
> 
> Those are definitely what I needed.
> 
> But I'm still baffled by things like the effective top being a smaller
> number (higher on the screen) than the top.
> 
> 
> 
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> _______________________________________________
> 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