Re: signal_enter_notify_event() does nothing
- From: Luca Cappa <luca cappa i-medlab com>
- To: gtkmm-list gnome org
- Subject: Re: signal_enter_notify_event() does nothing
- Date: Mon, 26 Sep 2005 16:07:24 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]