RE: Set treeview column width



Hi Iker.
I don't know if this is the way but it work for me:

   column = Gtk::manage(new Gtk::TreeViewColumn(_("Name")));
   column->pack_end(m_columns.m_name);
   treeview->append_column(*column);
   column->set_sizing(Gtk::TREE_VIEW_COLUMN_FIXED);
   // Here you set the width
   column->set_fixed_width(250);
   column->set_resizable(true);


Bye,
Juan Ángel


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