hack: hide the MDI parent frame by moving it off screen
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -80,6 +80,8 @@ public:
|
|||||||
virtual void ActivateNext();
|
virtual void ActivateNext();
|
||||||
virtual void ActivatePrevious();
|
virtual void ActivatePrevious();
|
||||||
|
|
||||||
|
virtual bool Show( bool show = true );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// TODO maybe have this member
|
// TODO maybe have this member
|
||||||
|
@@ -233,6 +233,22 @@ void wxMDIParentFrame::ActivatePrevious()
|
|||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wxMDIParentFrame::Show( bool show )
|
||||||
|
{
|
||||||
|
if ( !wxFrame::Show(show) )
|
||||||
|
return false;
|
||||||
|
|
||||||
|
// don't really show the MDI frame unless it has any children other than
|
||||||
|
// MDI children as it is pretty useless in this case
|
||||||
|
if ( show )
|
||||||
|
{
|
||||||
|
// TODO: check for other children
|
||||||
|
Move(-10000, -10000);
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// Child frame
|
// Child frame
|
||||||
|
|
||||||
wxMDIChildFrame::wxMDIChildFrame()
|
wxMDIChildFrame::wxMDIChildFrame()
|
||||||
|
Reference in New Issue
Block a user