ScrolledWindow on_button_release_event



Hello,

I have a Gtk::Image inside a Gtk::ScrolledWindow and I try to ctach the on_button_release_event when clicking on the image.
I have tried to connect the event to the main Window and directly to the Image and ScrolledWindow but nothing helps.
The on_button_press_event is connected to the main Window and works.

I tried:

remoteScreenWindow is the Gtk::ScrolledWindow.

remoteScreenWindow.set_events(Gdk::BUTTON_RELEASE_MASK);
remoteScreenWindow.signal_button_release_event().connect(sigc::mem_fun(*this, &gui::on_button_release_event), false);

bool gui::on_button_release_event(GdkEventButton *e)
{
  std::cout << "Release" << std::endl;

  return true;
}

I compile under Windows XP with MinGW and GCC 3.4.5 and Gtk+ 2.10.11 and Gtkmm 2.10.10 

Thanks

Jan Burgmeier
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser


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