public:
// creation
// --------
- wxTreeListCtrl() {}
+ wxTreeListCtrl()
+ : m_header_win(0), m_main_win(0), m_headerHeight(0)
+ {}
wxTreeListCtrl(wxWindow *parent, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
long style = wxTR_DEFAULT_STYLE,
const wxValidator &validator = wxDefaultValidator,
const wxString& name = wxTreeListCtrlNameStr )
- : m_header_win(0), m_main_win(0)
+ : m_header_win(0), m_main_win(0), m_headerHeight(0)
{
Create(parent, id, pos, size, style, validator, name);
}
wxTreeListMainWindow* GetMainWindow() const
{ return m_main_win; }
+ virtual wxSize DoGetBestSize() const;
+
protected:
// header window, responsible for column visualization and manipulation
wxTreeListHeaderWindow* m_header_win;
// // the common part of all ctors
// void Init();
+ void OnGetToolTip( wxTreeEvent &event );
void OnSize(wxSizeEvent& event);
-
+ void CalculateAndSetHeaderHeight();
+ void DoHeaderLayout();
private:
size_t fill_column;
+ size_t m_headerHeight;
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxTreeListCtrl)