-void MyFrame::CreateImageList()
-{
- if (m_imageList)
- {
- delete m_imageList;
- m_imageList = (wxImageList *) NULL;
- }
-
- if ( m_chkShowImages->IsChecked() )
- {
- // create a dummy image list with a few icons
- wxSize size(32, 32);
-
- m_imageList = new wxImageList( size.GetWidth(), size.GetHeight() );
-
- m_imageList->Add
- (
- wxArtProvider::GetIcon(wxART_INFORMATION, wxART_OTHER, size)
- );
-
- m_imageList->Add
- (
- wxArtProvider::GetIcon(wxART_QUESTION, wxART_OTHER, size)
- );
-
- m_imageList->Add
- (
- wxArtProvider::GetIcon(wxART_WARNING, wxART_OTHER, size)
- );
-
- m_imageList->Add
- (
- wxArtProvider::GetIcon(wxART_ERROR, wxART_OTHER, size)
- );
-
- m_notebook->SetImageList(m_imageList);
- }
-}
-
-