Hiding the Dock

Trevor DeVore lists at mangomultimedia.com
Thu Jun 24 13:30:07 EDT 2004


On Jun 24, 2004, at 10:39 AM, Trevor DeVore wrote:

> I need to hide the dock in a training program I am working on under  
> certain screen dimensions.  I found the hide menubar command but that  
> hides the menus as well and the menus in the application don't work  
> too well while hidden :-)
>
> Is there a built-in command to hide just the dock in Revolution  
> (looked but didn't find one) or is it external time?

In case anybody else is every wondering about this I will share what I  
have found so far.

It looks like hiding just the dock on OS X.2 is a pain in the rear due  
to a bug in the OS -
<http://lists.apple.com/archives/carbon-development/2003/Jun/09/ 
hidingthedock.001.txt>.

Though a technote at  
<http://developer.apple.com/technotes/tn2002/tn2062.html> says that you  
call:

error = SetSystemUIMode(kUIModeAllHidden, NULL);
ShowMenuBar();  //shows the menu bar.

to just hide the Dock.  On OS X.3 this doesn't work (the menu bar and  
dock both hide and then are shown again) but the code below does.  I  
don't have OS X.2 available right now to test this on though.

OS X.3 is a one line call which I tested in an external and it worked  
like a charm:
myErr = SetSystemUIMode(kUIModeContentSuppressed, NULL);

Oh well, I suppose people can manually hide the Dock for now.

-- 
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com



More information about the use-livecode mailing list