implemented Lower and Raise for OSX

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2004-04-21 07:03:18 +00:00
parent 89f9e172e2
commit 6548fabe00

View 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
}