From eb630bf1ecee4656a42e0ce2eadce00f4749e592 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Sat, 7 Feb 2004 18:38:12 +0000 Subject: [PATCH] Live resizing is OS X only. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/toplevel.cpp | 10 +++++++--- src/mac/toplevel.cpp | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index 7541500cfc..31cdcb7913 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -727,12 +727,16 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title, 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)) - wclass = kUtilityWindowClass; + wclass = kUtilityWindowClass; #endif #endif diff --git a/src/mac/toplevel.cpp b/src/mac/toplevel.cpp index 7541500cfc..31cdcb7913 100644 --- a/src/mac/toplevel.cpp +++ b/src/mac/toplevel.cpp @@ -727,12 +727,16 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title, 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)) - wclass = kUtilityWindowClass; + wclass = kUtilityWindowClass; #endif #endif -- 2.50.0