Detecting height of dock and taskbar

Richard Gaskin ambassador at fourthworld.com
Thu Sep 29 11:33:22 EDT 2005


Sarah Reichelt wrote:
>>Is there a way to detect the height of the dock in OSX and of the
>>taskbar in windows.
>>
>>I try to create a complete set of routines to: create open and save
>>documents (windows and mac).
>>
>>While opening a document I want it to be completly on the screen (also
>>the bottomRight so it's
>>possible to resize the doc) and have an offset for the topLeft from
>>other open docs.
>>For this I need to know how much room to leave at the bottom for the
>>dock or the taskbar.
>>I guess I need a shell command to do this, but unfortunatly I have no
>>clue
>>
> 
> 
> Check out the windowBoundingRect. It gives you the usable rectangle
> allowing for the dock or taskbar. However with Macs, it does not allow
> for the menu bar, so you may need increase the 2nd item to stop your
> windows disappearing under the menu bar.

Maybe that was an old bug that's been fixed?  I just ran "put the 
windowBoundingRect" in MC on my 15" PB and got "0,22,1234,854", which 
accomodates 22 pixels for the menu bar.

--
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the use-livecode mailing list