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:
@@ -1434,13 +1434,9 @@ void wxWindowMac::DoMoveWindow(int x, int y, int width, int height)
|
|||||||
if ( vis )
|
if ( vis )
|
||||||
SetControlVisibility( (ControlRef)m_macControl , true , true ) ;
|
SetControlVisibility( (ControlRef)m_macControl , true , true ) ;
|
||||||
#else
|
#else
|
||||||
// TODO TEST SetControlBounds( (ControlRef) m_macControl , &r ) ;
|
|
||||||
if ( vis )
|
if ( vis )
|
||||||
SetControlVisibility( (ControlRef)m_macControl , false , true ) ;
|
SetControlVisibility( (ControlRef)m_macControl , false , true ) ;
|
||||||
if ( doMove )
|
SetControlBounds( (ControlRef) m_macControl , &r ) ;
|
||||||
MoveControl( (ControlRef) m_macControl , r.left , r.top ) ;
|
|
||||||
if ( doSize )
|
|
||||||
SizeControl( (ControlRef) m_macControl , r.right-r.left , r.bottom-r.top ) ;
|
|
||||||
if ( vis )
|
if ( vis )
|
||||||
SetControlVisibility( (ControlRef)m_macControl , true , true ) ;
|
SetControlVisibility( (ControlRef)m_macControl , true , true ) ;
|
||||||
#endif
|
#endif
|
||||||
@@ -2320,11 +2316,17 @@ void wxWindowMac::OnInternalIdle()
|
|||||||
// Raise the window to the top of the Z order
|
// Raise the window to the top of the Z order
|
||||||
void wxWindowMac::Raise()
|
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
|
// Lower the window to the bottom of the Z order
|
||||||
void wxWindowMac::Lower()
|
void wxWindowMac::Lower()
|
||||||
{
|
{
|
||||||
|
#if TARGET_API_MAC_OSX
|
||||||
|
HIViewSetZOrder((ControlRef)m_macControl,kHIViewZOrderBelow, NULL) ;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user