Exemplo n.º 1
0
bool wxPageContainer::InsertPage(size_t index, wxWindow* /*page*/, const wxString& text, bool select, const int imgindex)
{
	if(select)
	{
		PushPageHistory(m_iActivePage);
		m_iActivePage = (int)index;
	}
	wxPageInfo pgInfo(text, imgindex);
	m_pagesInfoVec.Insert(pgInfo, index);
	Refresh();
	return true;
}
Exemplo n.º 2
0
bool wxPageContainer::InsertPage(size_t index, wxWindow* /*page*/, const wxString& text, bool select, const int imgindex)
{
	if(select)
	{
		m_iPreviousActivePage = m_iActivePage;
		m_iActivePage = (int)m_pagesInfoVec.GetCount();
	}
	wxPageInfo pgInfo(text, imgindex);
//	pgInfo.SetPosition(wxPoint(1, 1));
	m_pagesInfoVec.Insert(pgInfo, index);
	Refresh();
	return true;
}