added wxAuiNotebook::Split(); hooked up wxAuiMDIParentFrame::Tile() to it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Benjamin Williams
2006-11-28 15:25:59 +00:00
parent c3e016e45e
commit d606b6e977
4 changed files with 148 additions and 14 deletions

View File

@@ -354,6 +354,26 @@ void wxAuiMDIParentFrame::DoGetClientSize(int* width, int* height) const
wxFrame::DoGetClientSize(width, height);
}
void wxAuiMDIParentFrame::Tile(wxOrientation orient)
{
wxAuiMDIClientWindow* client_window = GetClientWindow();
wxASSERT_MSG(client_window, wxT("Missing MDI Client Window"));
int cur_idx = client_window->GetSelection();
if (cur_idx == -1)
return;
if (orient == wxVERTICAL)
{
client_window->Split(cur_idx, wxLEFT);
}
else if (orient == wxHORIZONTAL)
{
client_window->Split(cur_idx, wxTOP);
}
}
//-----------------------------------------------------------------------------
// wxAuiMDIChildFrame
//-----------------------------------------------------------------------------