Hello,
I'm in need to simulate a mouseclick on one of my eventboxes.
Let's assume we have an EventBox:
Gtk::EventBox event;
[...]
event.signal_button_press_event().connect( sigc::bind (sigc::mem_fun(*this,
&MyWindow::on_event_clicked), i, j));
Further we have a:
bool MyWindow::on_button_clicked(GdkEventButton* , unsigned int, unsigned
int);
So my EventBox waits for clicks to call "on_event_clicked".
Now at some other place I would like to call this funktion (which expects an
GdkEventButton* and two unsigned int) not by clicking on the event, but just
by code.
For instance:
if(var) {
//call on_event_clicked(...)
}
Is there any chance to trigger a mouseclick on a specific event? Because by
triggering the EventBox would call itself the desired funktion.
--
View this message in context:
http://www.nabble.com/simulate---fake-mouse-clicks-on-eventbox-tp20954698p20954698.html
Sent from the Gtkmm mailing list archive at Nabble.com.
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list