Adding a horizontal scrollbar to a TreeView


I try to add a horizontal scrollbar to a TreeView. It should only
display if the space is not sufficient. I tried it with:

  Gtk::TreeView m_siteTreeView;
  Gtk::Adjustment hadjustment (0, 0, 100);
  m_siteTreeView.set_hadjustment (hadjustment);
  //Add Tree model to container
  pack_start (m_siteTreeView);

But it doesn't work. I see no scroll bar. Any ideas how to do it?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]