Re: [gtkmm] Treeview help needed



Hi,

Don't know in which order you do things. But to make the headers
clickable you need to call set_headers_clickable() *AFTER* you've
appended the columns.

grtz,

Bart

On Thu, 2004-04-15 at 22:16, Andreas B. Thun wrote:
> Hi Simon, thx for your help.
> 
> I forgot to mention that my table is displayed correctly and
> of course I have methodes like:
> 
> 
> void ConstraintTable::addHeaderColumns()
> {
>    m_tree_view.append_column(gettext("Active"),      m_columns.m_col_active);
>    m_tree_view.append_column(gettext("Type"),        m_columns.m_col_type);
>    m_tree_view.append_column(gettext("ID"),          m_columns.m_col_id);
>    m_tree_view.append_column(gettext("Elements"),    m_columns.m_col_elements);
>    m_tree_view.append_column(gettext("Description"), m_columns.m_col_description);
> }
> 
> 
> void ConstraintTable::addRow(const VecRow_t& lineData)
> {
>    // Add lineData
>    Gtk::TreeModel::iterator iter = m_list_store_ref->append();
>    row_t row = *iter;
>    row [m_columns.m_col_active]      = lineData[0];
>    row [m_columns.m_col_type]        = lineData[1];
>    row [m_columns.m_col_id]          = lineData[2];
>    row [m_columns.m_col_elements]    = lineData[3];
>    row [m_columns.m_col_description] = lineData[4];
> }
> 
> 
> Simon Fuhrmann wrote:
> > I can't see code where you add the Gtk::TreeView::Column's. Try to use this
> > methode
> 
> 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list




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