Hi All,
Is there a way to get the rect of the OSX dock ?
Jean-Marc
get the rect of the OSX dock ?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
get the rect of the OSX dock ?
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: get the rect of the OSX dock ?
There may be a way to use AppleScript for that, but I don't know specifically how.
What do you want to do with that info?
If you want to simply avoid that region you can use the windowBoundingRect, which is the same as the screenRect minus the menubar region and the Dock region.
What do you want to do with that info?
If you want to simply avoid that region you can use the windowBoundingRect, which is the same as the screenRect minus the menubar region and the Dock region.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: get the rect of the OSX dock ?
Hi Richard,
Thank one more
Jean-Marc
Yes. Exactly what i needIf you want to simply avoid that region you can use the windowBoundingRect
Thank one more
Jean-Marc
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: get the rect of the OSX dock ?
Glad that was helpful.
While you're reading up on the windowBoundingRect, you may also want to check out "the working screenRect", a variant of the screenrect which returns the virtual co-ordinates of each screen's working-area. The working-area of a screen is defined to be the area not convered by OS furniture (such as the task bar on Windows, and the Dock and Menubar on Mac OS X).
Note that the windowBoundingRect is settable, and the working screenRect can be used to reset it to default values if needed.
While you're reading up on the windowBoundingRect, you may also want to check out "the working screenRect", a variant of the screenrect which returns the virtual co-ordinates of each screen's working-area. The working-area of a screen is defined to be the area not convered by OS furniture (such as the task bar on Windows, and the Dock and Menubar on Mac OS X).
Note that the windowBoundingRect is settable, and the working screenRect can be used to reset it to default values if needed.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn