HeavyJoost wrote:
I want a function to be called when the mouse goes over a button, I use
the following line:
toolUndo->signal_enter_notify_event().connect(sigc::mem_fun(*this,&MainWindow::nothingExec));
where nothing exec is:
bool MainWindow::nothingExec(GdkEventCrossing* event){
std::cout << "nothing to do" << std::endl;
return false;
}
I think you could add mouse related events to the button, like adding in
its ctor (or just after it was created):
add_events (Gdk::POINTER_MOTION_MASK | Gdk::ENTER_NOTIFY_MASK );
See you
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list