Do not move the wxMDIParentFrame to (-10000,-10000) if it has a toolbar.
NOTE: Ideally the toolbar would be moved internally to wxMac into its own floating frame and then the question of whether the parent frame should be hidden would be one of "does it not have controls OTHER than a toolbar?" git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
0bba37f51d
commit
7bf8eb78aa
@ -234,7 +234,8 @@ bool wxMDIParentFrame::Show( bool show )
|
||||
if ( show )
|
||||
{
|
||||
// TODO: check for other children
|
||||
Move(-10000, -10000);
|
||||
if(!GetToolBar())
|
||||
Move(-10000, -10000);
|
||||
}
|
||||
|
||||
if ( !wxFrame::Show(show) )
|
||||
|
Loading…
Reference in New Issue
Block a user