Select viewing values in a Gtk::TreeView



Hi guys,

Having the following Gtk::TreeModel...

****************************************
class RecordData
: Gtk::TreeModelColumnRecord
{
public:
   RecordData()
      {add (c_sel), add (c_data1)...}

   Gtk::TreeModelColumn <bool> c_sel;
   [...]
};

RecordData _record_data;

Glib::RefPtr <Gtk::TreeStore> _refData =
   Gtk::TreeStore::create (_record_data);
*****************************************

And a Gtk::TreeView as follows...

*********************************************************************
Gtk::TreeView _treeview (_refData);

[...]
	_treeview.append_column_editable (_("Sel."), _record_data.c_sel);
[...]
*********************************************************************

(The code shows for each row a widget like a checkbox representing the
bool value...)

Is it possible to show this widget (like a checkbox) only after
certain c_data1 value ?

I mean, view the bool value only in certain rows...

Glus


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