In my case the working screenRect returned 0,22,1680,1046

if I add 22 to item 2 for 0,44,1680,1046 it seems to work correctly

Having measured the screen with Apples screen grab the point directly below the 
OS X menubar is 22 and not 44.

Surely LC should return the correct co-ordinate for Mac and not rely on me 
converting a Windows co-ordinate?

All the best

Terry


On 3 Jun 2014, at 18:38, Terence Heaford <[email protected]> wrote:

> Mac OS X 10.9.3 LC 6.6.1 & LC 6.7 (dp4)
> 
> I have been zooming a stack to the size of the screen using the screenRect 
> function:
> 
> set the rect of this stack to the working screenRect
> 
> When I do this the top part of the stack window disappears beneath the OS X 
> menubar.
> 
> The documents suggest it should be otherwise:
> 
> "Adding the working adjective to either form returns the virtual co-ordinates 
> of each screen's working-area. The working-area of a screen is defined to be 
> the area not covered by OS furniture (such as the task bar on Windows, and 
> the Dock and Menubar on Mac OS X).”
> 
> Is this a bug or are the documents incorrect.
> 
> If the documents are incorrect then is there a LC function that returns the 
> height of the Mac menubar?
> 
> 
> 
> 
> All the best
> 
> Terry
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to