summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f78e494)
where the header window needs to be adjusted.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31223
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void OnSize(wxSizeEvent& event);
void CalculateAndSetHeaderHeight();
void OnSize(wxSizeEvent& event);
void CalculateAndSetHeaderHeight();
private:
size_t fill_column;
private:
size_t fill_column;
-
-void wxTreeListCtrl::OnSize(wxSizeEvent& WXUNUSED(event))
+void wxTreeListCtrl::DoHeaderLayout()
{
int w, h;
GetClientSize(&w, &h);
{
int w, h;
GetClientSize(&w, &h);
}
if (m_main_win)
m_main_win->SetSize(0, m_headerHeight + 1, w, h - m_headerHeight - 1);
}
if (m_main_win)
m_main_win->SetSize(0, m_headerHeight + 1, w, h - m_headerHeight - 1);
+}
+
+void wxTreeListCtrl::OnSize(wxSizeEvent& WXUNUSED(event))
+{
+ DoHeaderLayout();
{ return m_header_win->GetColumnText(column); }
void wxTreeListCtrl::AddColumn(const wxTreeListColumnInfo& col)
{ return m_header_win->GetColumnText(column); }
void wxTreeListCtrl::AddColumn(const wxTreeListColumnInfo& col)
-{ m_header_win->AddColumn(col); }
+{
+ m_header_win->AddColumn(col);
+ DoHeaderLayout();
+}
void wxTreeListCtrl::InsertColumn(size_t before,
const wxTreeListColumnInfo& col)
void wxTreeListCtrl::InsertColumn(size_t before,
const wxTreeListColumnInfo& col)