git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68917
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxTL_DEFAULT_STYLE = wxTL_SINGLE,
wxTL_STYLE_MASK = wxTL_SINGLE |
- wxTL_CHECKBOX
+ wxTL_MULTIPLE |
+ wxTL_CHECKBOX |
+ wxTL_3STATE |
+ wxTL_USER_3STATE
};
// ----------------------------------------------------------------------------
///////////////////////////////////////////////////////////////////////////////
-// Name: interface.wx/bannerwindow.h
+// Name: interface/wx/bannerwindow.h
// Purpose: wxBannerWindow class documentation
// Author: Vadim Zeitlin
// Created: 2011-08-16
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)