Re: signal_enter_notify_event() does nothing
- From: HeavyJoost <heavyjoost gmail com>
- To: gtkmm-list gnome org
- Subject: Re: signal_enter_notify_event() does nothing
- Date: Mon, 26 Sep 2005 22:23:25 +0200
Luca Cappa wrote:
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
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
How would I put that in my code? just like so?:
add_events (Gdk::POINTER_MOTION_MASK | Gdk::ENTER_NOTIFY_MASK );
toolUndo->signal_enter_notify_event().connect(sigc::mem_fun(*this,&MainWindow::nothingExec));
if so, then it doesn't work.. I really hope to get this to work :(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]