]> git.saurik.com Git - wxWidgets.git/commitdiff
implemented Lower and Raise for OSX
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 21 Apr 2004 07:03:18 +0000 (07:03 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 21 Apr 2004 07:03:18 +0000 (07:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index 218ba9877ce4d4ac1ca5b428d5078d8951573eef..0d5bf2fab7f4d0f15864780d3f4441ec904a5576 100644 (file)
@@ -1434,13 +1434,9 @@ void wxWindowMac::DoMoveWindow(int x, int y, int width, int height)
         if ( vis )
             SetControlVisibility(  (ControlRef)m_macControl , true , true ) ;
 #else
-// TODO TEST        SetControlBounds( (ControlRef) m_macControl , &r ) ;
         if ( vis )
             SetControlVisibility(  (ControlRef)m_macControl , false , true ) ;
-        if ( doMove )
-            MoveControl( (ControlRef) m_macControl , r.left , r.top ) ;
-        if ( doSize )
-            SizeControl( (ControlRef) m_macControl , r.right-r.left , r.bottom-r.top ) ;
+        SetControlBounds( (ControlRef) m_macControl , &r ) ;
         if ( vis )
             SetControlVisibility(  (ControlRef)m_macControl , true , true ) ;
 #endif
@@ -2320,11 +2316,17 @@ void wxWindowMac::OnInternalIdle()
 // Raise the window to the top of the Z order
 void wxWindowMac::Raise()
 {
+#if TARGET_API_MAC_OSX
+    HIViewSetZOrder((ControlRef)m_macControl,kHIViewZOrderAbove, NULL) ;
+#endif
 }
 
 // Lower the window to the bottom of the Z order
 void wxWindowMac::Lower()
 {
+#if TARGET_API_MAC_OSX
+    HIViewSetZOrder((ControlRef)m_macControl,kHIViewZOrderBelow, NULL) ;
+#endif
 }