Height of the dock (MacOS)

BlitzMax Forums/BlitzMax Beginners Area/Height of the dock (MacOS)

Pierrou(Posted 2010) [#1]
Last one for today, about MacOS too : is there a way to get the height of the dock?
Thank you!

EDIT : getting its width and position would help too, I'm somewhat new to MacOS and I had forgotten the dock could be moved.


explosive(Posted 2010) [#2]
Import maxgui.drivers
Local dockheight:Int=GadgetHeight(Desktop())-ClientHeight(Desktop())-27
Print "DockHeight: "+dockheight


This just works with MaxGUI, I am afraid. Haven't checked it in detail, but seems to work quite appropriate.

If you just want to find out the height of your window, simply us ClientHeight(Desktop()) for the height-argument.


Pierrou(Posted 2010) [#3]
Thank you! Now that MaxGUI is free I can take a look at it.