image ResEx Logo
ResExcellence www : Powered by Google
Cell Phone Themes Icons Mighty Mouse Cursors Software Reviews Widgets & Widgets

Articles
   3D
   Audio
   Custom Controls
   General RB
   Graphics
   Hacks
   Mac OS X
   Menus
   Novelty
   Printing
   REALbasic 2005
   REALbasic 2006
   Registration
   Resources
   Reviews
   Serial
   Speech
   Sockets
   XML
   Video
Resource Links
News
   Current News
   February 2006
   January 2006
   December 2005
   November 2005
   October 2005
   September 2005
   August 2005
   July 2005
   June 2005
   May 2005
   April 2005
   March 2005









REALbasic for Dummies
by Erick Tejkowski


Learning REALbasic through Applications
by Clayton E., Crooks II


REALbasic for Macintosh
by Michael Swaine


REALbasic Cross-Platform Application Development
by Mark S. Choate





Older files are in Stuffit 5 or greater format. Newer files are ".Zip". Download StuffIt Expander
Tell us about a bad link. Thank You!

Unified Toolbar/Titlebar Windows by Seth Willits
04-30-05

Printer Version




The Third Window Style
Despite my reservations about the new window style in Tiger, I figured I'd show you how to do it in REALbasic. In the image below, on the left we have our typical Mac OS X Panther styled window, and on the right we have the new Tiger window style, the "Unified Toolbar/Titlebar" window where the gradiant in the titlebar is extended throughout the toolbar.



The Code
Get Ready for this, it's really complex...

Declare Sub ChangeWindowAttributes Lib "Carbon" (win as WindowPtr, setAttribs as integer, removeAttribs as integer)
ChangeWindowAttributes self, 2^7 + 2^11 + 2^18, 0

Yup. That's all of it. Just stick that in the Open event of the window and you'll be good to go. There is one gotcha though. At the moment there appears to be a bug which causes the window background to be white initially. The workaround is simple though. Drag a timer to the window with a single period of 1 millisecond and have it call "self.Refresh". That's it! Most of the time you can't even see the white, but if other stuff is going on in the background, you might.

Finished
Please, whatever you do, don't go adding this to every one of your applications. I think th newe window style is ugly and I'm still trying to get used to it. I'm hoping that Apple will ditch it soon. As always, you can download the project here.




Cell Phone Themes Icons Mighty Mouse Cursors Software Reviews Widgets & Widgets

Maintained by the Staff of ResExcellence. This entire site ©1997-2006 ResExcellence
Privacy Statement? Sure we gotta Privacy Statement. [an error occurred while processing this directive]