- Added wxEVT_COMMAND_DIRCTRL_CHANGED event (troelsk).
- Added wxControl::GetSizeFromTextSize() (Manuel Martin).
- Optionally allow showing tooltips for disabled ribbon buttons (wxBen).
+- Add wxTL_NO_HEADER style to wxTreeListCtrl (robboto).
wxGTK:
// Purpose: wxTreeListCtrl class declaration.
// Author: Vadim Zeitlin
// Created: 2011-08-17
-// RCS-ID: $Id: wxhead.h,v 1.12 2010-04-22 12:44:51 zeitlin Exp $
+// RCS-ID: $Id$
// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
wxTL_CHECKBOX = 0x0002, // Show checkboxes in the first column.
wxTL_3STATE = 0x0004, // Allow 3rd state in checkboxes.
wxTL_USER_3STATE = 0x0008, // Allow user to set 3rd state.
+ wxTL_NO_HEADER = 0x0010, // Column titles not visible.
wxTL_DEFAULT_STYLE = wxTL_SINGLE,
wxTL_STYLE_MASK = wxTL_SINGLE |
wxTL_CHECKBOX = 0x0002, /// Show checkboxes in the first column.
wxTL_3STATE = 0x0004, /// Allow 3rd state in checkboxes.
wxTL_USER_3STATE = 0x0008, /// Allow user to set 3rd state.
+ /**
+ Don't show the column headers.
+
+ By default this control shows the column headers, using this class
+ allows to avoid this and show only the data.
+
+ @since 2.9.5
+ */
+ wxTL_NO_HEADER = 0x0010,
wxTL_DEFAULT_STYLE = wxTL_SINGLE,
wxTL_STYLE_MASK = wxTL_SINGLE |
// Purpose: Generic wxTreeListCtrl implementation.
// Author: Vadim Zeitlin
// Created: 2011-08-19
-// RCS-ID: $Id: wxhead.cpp,v 1.11 2010-04-22 12:44:51 zeitlin Exp $
+// RCS-ID: $Id$
// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
}
m_view = new wxDataViewCtrl;
+ long styleDataView = HasFlag(wxTL_MULTIPLE) ? wxDV_MULTIPLE
+ : wxDV_SINGLE;
+ if ( HasFlag(wxTL_NO_HEADER) )
+ styleDataView |= wxDV_NO_HEADER;
+
if ( !m_view->Create(this, wxID_ANY,
wxPoint(0, 0), GetClientSize(),
- HasFlag(wxTL_MULTIPLE) ? wxDV_MULTIPLE
- : wxDV_SINGLE) )
+ styleDataView) )
{
delete m_view;
m_view = NULL;