From: Stefan Csomor Date: Wed, 21 Apr 2004 07:03:18 +0000 (+0000) Subject: implemented Lower and Raise for OSX X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6548fabe00fca91c3638eaab45dd4132286ed18e implemented Lower and Raise for OSX git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 218ba9877c..0d5bf2fab7 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -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 }