The easiest solution I can think of would be a work-around. Just write up your own window class. Implement your own titlebar and widgets in the Print() event and shift all content down by the appropriate ammount in the window's Open() event. You can then hide the window's titlebar using declares, and even implement your own window-shade style collapse. Of course this is going to feel cheesy, no matter how well you implement it.
You could possibly define your own window definition using the API and then handle the collapse event yourself. See http://developer.apple.com/documentation/Carbon/Reference/Window_Manager/index.html for more info on that. I suggest you read Apple's Technote "TN2062 - Guide to Creating Kiosks on Mac OS X" at http://developer.apple.com/technotes/tn2002/tn2062.html , specifically it mentions the ability to hide the dock without disabling it. Which may be what you wanted all along. Hope that helps, ~ Tomis --- Tom Benson <[EMAIL PROTECTED]> wrote: > > Declare Function SetSystemUIMode Lib "Carbon" (inMode as > > Integer, inOptions as Integer) as Integer > > > > Dim OSError as Integer > > Const kUIModeContentHidden = 2 > > OSError = SetSystemUIMode(kUIModeContentHidden, 0) > > I'm setting up the UI mode of my app to mode 2 as above, which > displays the menu bar but not the dock. This also has the side effect > of disabling all of the minimise widgets in my windows though. I > still need access to the minimise widget as I want to do something > different with the window once it is minimised by catching it's > minimised event. > > Any ideas??? > > I've been messing around with ChangeWindowAttributes but can't seem > to get it to work against the UImode behaviour. > > Cheers, > Tom > > All questions and answers unless otherwise stated are in Relation to > Mac OS X 10.4 and later. > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
