]> git.saurik.com Git - wxWidgets.git/commitdiff
Live resizing is OS X only.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sat, 7 Feb 2004 18:38:12 +0000 (18:38 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sat, 7 Feb 2004 18:38:12 +0000 (18:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp
src/mac/toplevel.cpp

index 7541500cfcc7c17448a0b929a7d70b906bd0004e..31cdcb791300aae2b2dbca5573377545a77f68fa 100644 (file)
@@ -727,12 +727,16 @@ void  wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
         attr |= kWindowCloseBoxAttribute ;
     }
 
         attr |= kWindowCloseBoxAttribute ;
     }
 
-    attr |= kWindowLiveResizeAttribute; //turn on live resizing
-    
+    if (UMAGetSystemVersion() >= 0x1000)
+    {
+        //turn on live resizing (OS X only)
+        attr |= kWindowLiveResizeAttribute;
+    }
+
 #if TARGET_CARBON
 #if 0 //  having problems right now with that
     if (HasFlag(wxSTAY_ON_TOP))
 #if TARGET_CARBON
 #if 0 //  having problems right now with that
     if (HasFlag(wxSTAY_ON_TOP))
-       wclass = kUtilityWindowClass;
+        wclass = kUtilityWindowClass;
 #endif
 #endif
 
 #endif
 #endif
 
index 7541500cfcc7c17448a0b929a7d70b906bd0004e..31cdcb791300aae2b2dbca5573377545a77f68fa 100644 (file)
@@ -727,12 +727,16 @@ void  wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
         attr |= kWindowCloseBoxAttribute ;
     }
 
         attr |= kWindowCloseBoxAttribute ;
     }
 
-    attr |= kWindowLiveResizeAttribute; //turn on live resizing
-    
+    if (UMAGetSystemVersion() >= 0x1000)
+    {
+        //turn on live resizing (OS X only)
+        attr |= kWindowLiveResizeAttribute;
+    }
+
 #if TARGET_CARBON
 #if 0 //  having problems right now with that
     if (HasFlag(wxSTAY_ON_TOP))
 #if TARGET_CARBON
 #if 0 //  having problems right now with that
     if (HasFlag(wxSTAY_ON_TOP))
-       wclass = kUtilityWindowClass;
+        wclass = kUtilityWindowClass;
 #endif
 #endif
 
 #endif
 #endif