]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/notebook/notebook.cpp
Always use icons with wxToolbook in the notebook sample.
[wxWidgets.git] / samples / notebook / notebook.cpp
index b56dbaeb9f50f83834a9530c0d67ad58cf5deddd..7e1a3e025ba554425b004ccbfdd3518f5711bcb0 100644 (file)
@@ -548,7 +548,8 @@ void MyFrame::RecreateBook()
 
     m_bookCtrl->Hide();
 
-    if ( m_chkShowImages )
+    // wxToolbook doesn't work without icons so always use them for it.
+    if ( m_chkShowImages || m_type == Type_Toolbook )
     {
         m_bookCtrl->SetImageList(m_imageList);
     }