-void wxNotebook::AdvanceSelection( bool forward )
-{
- wxCHECK_RET( m_widget != NULL, wxT("invalid notebook") );
-
- int max = GetPageCount();
- if ( !max )
- {
- // nothing to do with empty notebook
- return;
- }
-
- int sel = GetSelection();
-
- if (forward)
- SetSelection( sel == max - 1 ? 0 : sel + 1 );
- else
- SetSelection( sel == 0 ? max - 1 : sel - 1 );
-}
-
-void wxNotebook::SetImageList( wxImageList* imageList )
-{
- if (m_ownsImageList) delete m_imageList;
- m_imageList = imageList;
- m_ownsImageList = FALSE;
-}
-
-void wxNotebook::AssignImageList( wxImageList* imageList )
-{
- SetImageList(imageList);
- m_ownsImageList = TRUE;