Question

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 ?

Was it helpful?

Solution 2

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);

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top