[gtkmm] Treeview



I tried to add an popup menu to an Treeview but have one huge problem
implementing it:
I i never get the on_Treeview_button_press_event called :-(

my current code:

	Treeview->set_flags (Gtk::CAN_FOCUS);
	Treeview->set_headers_visible (true);
	Treeview->set_rules_hint (false);
	Treeview->set_reorderable (true);
	Treeview->set_enable_search (true);
	Treeview->add_events (Gdk::BUTTON_PRESS_MASK);
	Treeview->signal_button_press_event().connect(
		SigC::slot (*this,&window::on_Treeview_button_press_event));

	Treeview->signal_button_press_event().connect(SigC::slot(*this,
&window::on_Treeview_button_press_event));

the Treeview is inside an scrolled window .. could that be the reason ??


regards Clemens

-- 

    Auer Clemens
    AUSTRIA



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