Re: ScrolledWindow on_button_release_event



-------- Original-Nachricht --------
> Datum: Tue, 20 Nov 2007 13:44:52 +0100
> Von: "Jan Burgmeier" <Jan Burgmeier gmx de>
> An: gtkmm-list gnome org
> Betreff: 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
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list

-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail


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