[gtkmm] and now how to put a button in a treeview ?
- From: cedric <cedric probesys com>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: [gtkmm] and now how to put a button in a treeview ?
- Date: Mon, 21 Jun 2004 15:00:31 +0200
sorry for the spam !
I'd like to put a button in a treeview.
For example ...
class ModelColumns : public Gtk::TreeModel::ColumnRecord
{
public:
ModelColumns()
{ add(m_col_text); add(m_col_number); }
Gtk::TreeModelColumn<Glib::ustring> m_col_text;
* Gtk::TreeModelColumn<Gtk::Button> mybutton;*
};
I tried that but i can't use a Gtk::Button in the TreeModelColumn.
The compiler says that Gtk::Button is private ?!?
I also tried to put a pointer : * Gtk::TreeModelColumn<Gtk::Button * >
mybutton;
*It compiled but the button wasn't displayed.
I don't understand cause i didn't forget to add this column to the view.
Have u any idea ?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]