// Created: 20.07.2003
// RCS-ID: $Id$
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwindows.org>
-// License: wxWindows license
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
virtual int GetHeaderButtonHeight(wxWindow *win);
+ virtual int GetHeaderButtonMargin(wxWindow *win);
+
virtual void DrawTreeItemButton(wxWindow *win,
wxDC& dc,
const wxRect& rect,
// truncate and add an ellipsis (...) if the text is too wide.
const int availWidth = rect.width - labelWidth;
+#if wxUSE_CONTROLS
if ( tw > availWidth )
{
label = wxControl::Ellipsize(label,
tw = dc.GetTextExtent(label).x;
}
else // enough space, we can respect alignment
+#endif // wxUSE_CONTROLS
{
switch (params->m_labelAlignment)
{
return h + d + 2 * HEADER_OFFSET_Y + EXTRA_HEIGHT;
}
+int wxRendererGeneric::GetHeaderButtonMargin(wxWindow *WXUNUSED(win))
+{
+ return 5;
+}
+
// draw the plus or minus sign
void