Implemented Raise()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott 2003-04-13 05:40:01 +00:00
parent 84a667dc06
commit d5ca66298a

View File

@ -377,7 +377,11 @@ void wxWindow::Clear()
// Raise the window to the top of the Z order
void wxWindow::Raise()
{
// TODO
NSView *nsview = m_dummyNSView?m_dummyNSView:m_cocoaNSView;
NSView *superview = [nsview superview];
[nsview retain];
[nsview removeFromSuperview];
[superview addSubview:nsview];
}
// Lower the window to the bottom of the Z order