Window decorations in OSX

Ken Ray kray at sonsothunder.com
Fri Oct 25 11:34:00 EDT 2002


Shari,

The lookAndFeel only applies to the *content* of windows, not the window
decorations themselves. So if someone is running an app with the lookAndFeel
set to "Macintosh" in OSX, they should see the three jelly bean buttons in a
titlebar that is an "OS X" titlebar. The only time they wouldn't see the
jelly beans would be if you set the decorations of the window. For
reference, here's what you get in OS X for the various decorations
properties (note that the "other" buttons are not invisible, they are just
shown disabled):

'title' = minimize only
'minimize' = minimize only
'maximize' = minimize and maximize
'menu' = minimize only
'default' = minimize, maximize, and close
'none' = minimize only
"" or 'empty' = no title bar or window borders

Hope this helps,

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "Shari" <gypsyware at earthlink.net>
To: <metacard at lists.runrev.com>
Sent: Friday, October 25, 2002 10:07 AM
Subject: Window decorations in OSX


> One of my OSX beta testers mentioned that the red close button was
> missing.  I asked her in more detail what she meant (I do not have
> OSX) and her explanation follows:
>
> >>>
> in every window in OS X and in most apps that run native there is a
> red, a yellow and a green jelly bean button in the upper left corner.
> red=close window, yellow shrinks window to tool bar, green enlarges
> window to fill screen.
> <<<
>
> I have the lookAndFeel set to Macintosh, as I discovered a few bugs
> back that certain menu type buttons (option) wouldn't work as
> intended on other platforms, and looked hideous on some platforms,
> but looked fine on classic Macintosh.  It was a big enough issue that
> I set the lookAndFeel to Macintosh when the stack opens.  I tried
> other styles of buttons to compensate but in the end, setting the
> lookAndFeel was the best choice.
>
> I've checked things out with the different lookAndFeel preferences
> settings in general, to see how things look on other platforms, and
> I've not seen these colored jelly bean buttons.
>
> Do they exist in Metacard?  And if not, is there any way to create them?
>
> I'm guessing that one way would be to create your own title bar for
> the windows, by using no decorations and just having the window
> graphics mimic a title bar.
>
> Any other ideas?
>
> (Not going to bother with it for this project, but my next big
> project, that would be a nice touch.)
> --
> --Shareware Games for the Mac--
> http://www.gypsyware.com
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
>




More information about the metacard mailing list