Re: [gtkmm] Keystroke interception



>  //******************** this doesn't work ********************
>  MainWindowEntry = manage (new Gtk::Entry);
>  MainWindowEntry->signal_key_press_event().connect (SigC::slot (&APLInterpret
>er::OnKeystroke), false);

&APLInterpreter::OnKeystroke is a ptr-to-member-function, and
therefore the correct way to create a slot is:

	      slot (*this, &APLInterpreter::OnKeystroke)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]