]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wxFRAME_EX_METAL, wxDIALOG_EX_METAL for Mac metal appearance (saves #ifdefing)
authorJulian Smart <julian@anthemion.co.uk>
Mon, 7 Mar 2005 21:50:11 +0000 (21:50 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 7 Mar 2005 21:50:11 +0000 (21:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h
src/mac/carbon/toplevel.cpp

index f773f1c6c1a6f76768927692525d6b172a94a1c4..dc12e2af95d6c9e4f6ae1cf5cdb9524d85ba7553 100644 (file)
@@ -1359,6 +1359,10 @@ enum wxBorder
 #define wxFRAME_EX_CONTEXTHELP  0x00000004
 #define wxDIALOG_EX_CONTEXTHELP 0x00000004
 
+/*  Draw the window in a metal theme on Mac */
+#define wxFRAME_EX_METAL                0x00000040
+#define wxDIALOG_EX_METAL               0x00000040
+
 /*  Create a window which is attachable to another top level window */
 #define wxFRAME_DRAWER          0x0020
 
index 7f7bc298af597ead48b23d8ec0733a8cd97fd44c..618ef034b7b11fb8fb9872289d4b35cc6f8e62c8 100644 (file)
@@ -925,6 +925,9 @@ bool wxTopLevelWindowMac::Create(wxWindow *parent,
     MacCreateRealWindow( title, pos , size , MacRemoveBordersFromStyle(style) , name ) ;
 
     SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
+    
+    if (GetExtraStyle() & wxFRAME_EX_METAL)
+        MacSetMetalAppearance(true);
 
     wxTopLevelWindows.Append(this);