I'm making an app using GTKMM and I want to know how to catch the right click signal from a Gtk::Table ?
And also how to catch if the Mouse is over a Gtk::Table ?
I'm making an app using GTKMM and I want to know how to catch the right click signal from a Gtk::Table ?
And also how to catch if the Mouse is over a Gtk::Table ?
All GTK+ widgets have the button-press-event and focus-in-event events. You can use the latter, in combination with its complement (focus-out-event) to track if the mouse is inside the widget.
Ok I figured out the solution. I was able to capute the right click by overiding the button press event :
virtual bool on_button_press_event(GdkEventButton* event);