Re: [gtkmm] Treeview help needed



Hi!

I haven't followed this thread but maybe it helps.

> I´ve tried with my list view but the headers are
> not clickable at all. Any hints?
>
>    m_list_store_ref = Gtk::ListStore::create(m_columns);
>    m_list_store_ref->set_sort_column_id(1, Gtk::SORT_ASCENDING);  //
<---------
>    m_tree_view.set_model(m_list_store_ref);
>    m_tree_view.set_headers_clickable();  // <---------

I can't see code where you add the Gtk::TreeView::Column's. Try to use this
methode

  int append_column (TreeViewColumn& column)

with your tree model column as parameter before you call
set_headers_visible(). You may want to try to pass `true´ explictly to
set_headers_clickable(), but that shouldn't be neccessary.

Regards,
Simon Fuhrmann




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