]> git.saurik.com Git - wxWidgets.git/commitdiff
No changes, just fix a typo in wxBannerWindow documentation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 27 Aug 2011 14:11:09 +0000 (14:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 27 Aug 2011 14:11:09 +0000 (14:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/treelist.h
interface/wx/bannerwindow.h
samples/treelist/treelist.cpp

index 4e82b3f229ef3b9e393ed4108e8b496c02b31e8d..1016e262c1a659848342d67f0df80ae4a349fd5c 100644 (file)
@@ -47,7 +47,10 @@ enum
 
     wxTL_DEFAULT_STYLE  = wxTL_SINGLE,
     wxTL_STYLE_MASK     = wxTL_SINGLE |
-                          wxTL_CHECKBOX
+                          wxTL_MULTIPLE |
+                          wxTL_CHECKBOX |
+                          wxTL_3STATE |
+                          wxTL_USER_3STATE
 };
 
 // ----------------------------------------------------------------------------
index 50f70bb3b73e6d7b8fa85b35e1c457ae6f18fedc..e91073ff3a4b01cffed2718c4cb2c9b669623aa5 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        interface.wx/bannerwindow.h
+// Name:        interface/wx/bannerwindow.h
 // Purpose:     wxBannerWindow class documentation
 // Author:      Vadim Zeitlin
 // Created:     2011-08-16
index fc614dc596e7d166bba36106d77b5413e47bfacd..4ee77cc33d1f7f8eda5bfd91b60f9aab827a7241 100644 (file)
@@ -499,7 +499,14 @@ const char* MyFrame::CheckedStateString(wxCheckBoxState state)
 
 void MyFrame::OnSelectionChanged(wxTreeListEvent& event)
 {
-    wxLogMessage("Selection changed to \"%s\"", DumpItem(event.GetItem()));
+    const char* msg;
+
+    if ( m_treelist->HasFlag(wxTL_MULTIPLE) )
+        msg = "Selection of the \"%s\" item changed.";
+    else
+        msg = "Selection changed, now is \"%s\".";
+
+    wxLogMessage(msg, DumpItem(event.GetItem()));
 }
 
 void MyFrame::OnItemExpanding(wxTreeListEvent& event)