renamed AddSubPage() with pos parameter to InsertSubPage()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-02-05 12:27:20 +00:00
parent 68df211fae
commit 9d5371c60b
4 changed files with 38 additions and 27 deletions

View File

@@ -436,7 +436,7 @@ void MyFrame::RecreateBook()
if ( parent != wxNOT_FOUND )
{
wxStaticCast(m_bookCtrl, wxTreebook)->
AddSubPage(parent, page, str, false, image);
InsertSubPage(parent, page, str, false, image);
// skip adding it again below
continue;
@@ -600,15 +600,18 @@ void MyFrame::OnAddSubPage(wxCommandEvent& WXUNUSED(event))
}
static unsigned s_subPageAdded = 0;
currBook->AddSubPage(selPos,
CreateNewPage(),
wxString::Format
(
ADDED_SUB_PAGE_NAME wxT("%u"),
++s_subPageAdded
),
true,
GetIconIndex(currBook));
currBook->InsertSubPage
(
selPos,
CreateNewPage(),
wxString::Format
(
ADDED_SUB_PAGE_NAME wxT("%u"),
++s_subPageAdded
),
true,
GetIconIndex(currBook)
);
}
}