1

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 ?

4

2 に答える 2

3

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.

于 2010-02-11T10:11:16.080 に答える
-2

わかりました、私は解決策を見つけました。ボタンを押すイベントを上書きすることで、右クリックをキャプチャすることができました:

virtual bool on_button_press_event(GdkEventButton* event);
于 2010-02-12T09:54:54.167 に答える