ScreenRect bug or not
t.heaford at btinternet.com
Tue Jun 3 13:54:00 EDT 2014
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
On 3 Jun 2014, at 18:38, Terence Heaford <t.heaford at btinternet.com> 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
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode