Re: Set with on treeview column



apostolo wrote:
Hi,

I have an application with a treeview with CellRendererCombo in each cell. This is working fine, with no known problem.
I can attach the model into the cell renderer, choose the desired item, etc.

The problem is in when I have a narrow cell, I can't see the items set in the combo renderer model. For example if a cell in the treeview has the text "Is" or "And", when click the cell combo to select a new item, I can't see anything in the Combo. This happens because the column of the treeview is too narrow (we made the cheat
and create a a larger cell, by introducing spaces, and the items appear).

I think the solution to this is to increase the length of the column. How can I perform this?

You probably want to use the Gtk::TreeViewColumn::set_*_width() methods on the Gtk::TreeViewColumn or maybe set a custom Gtk::CellRenderer for the Gtk::TreeModelColumn<..>.

--
José Alburquerque
jaalburquerque cox net

The path to real wisdom begins with a deep loving respect for the ever living God (Prov. 1:7)



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