Point button_press_event to the same function.
- From: "Carlos Garces" <carlos garces gmail com>
- To: gtkmm-list gnome org
- Subject: Point button_press_event to the same function.
- Date: Sun, 26 Feb 2006 17:36:12 +0100
Hi.
I what to point all the button_press_event of my menu to the same function
Something like this
pWidget->signal_button_press_event().connect(sigc::mem_fun(*this, pFunc));
And the function:
bool MainWindow::onClickMenu(GdkEventButton *event)
{
printf ("Button %d\n", event->button);
}
But I can determine the button (EventBox) that I have clicked.
¿Any
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]