// ----------------------------------------------------------------------------
// check that the page index is valid
// ----------------------------------------------------------------------------
// check that the page index is valid
{
wxNotebookPageInfoList* list = const_cast< wxNotebookPageInfoList* >( &m_pageInfos ) ;
WX_CLEAR_LIST( wxNotebookPageInfoList , *list ) ;
{
wxNotebookPageInfoList* list = const_cast< wxNotebookPageInfoList* >( &m_pageInfos ) ;
WX_CLEAR_LIST( wxNotebookPageInfoList , *list ) ;
- info->Create( const_cast<wxNotebook*>(this)->GetPage(i) , GetPageText(i) , GetSelection() == i , GetPageImage(i) ) ;
+ info->Create( const_cast<wxNotebook*>(this)->GetPage(i) , GetPageText(i) , GetSelection() == int(i) , GetPageImage(i) ) ;
{
wxNotebookEvent event(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, m_windowId);
event.SetSelection(nPage);
{
wxNotebookEvent event(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, m_windowId);
event.SetSelection(nPage);
// ----------------------------------------------------------------------------
// remove one page from the notebook, without deleting
// ----------------------------------------------------------------------------
// remove one page from the notebook, without deleting
{
// last page deleted, make the new last page the new selection
selNew = m_nSelection - 1;
}
{
// last page deleted, make the new last page the new selection
selNew = m_nSelection - 1;
}
// if the inserted page is before the selected one, we must update the
// index of the selected page
// if the inserted page is before the selected one, we must update the
// index of the selected page