Re: [gtkmm] how to trigger an action when my mouse leaves a selected widget?



Hi,

just overriding Gtk::Window::on_delete_event(GdkEventAny* event) works
fine for me.

Bart

On Sat, 2004-04-10 at 09:52, Andreas B. Thun wrote:
> Thx very much Roger.
> 
> Do you also know how to trigger an actiion
> when I close a window with the x in the upper
> left corner of a KDE window?
> 
> > "Andreas B. Thun" <abt gmx de> writes:
> > 
> > 
> >>I want to trigger an action when my mouse leaves
> >>a selected widget, an entry for example.
> >>
> >>Scenario is: I enter text into the entry box
> >>and I wanna check, if the entered value is
> >>correct when the widget loses focus.
> > 
> > 
> > This is in the documentation for Gtk::Widget:
> > 
> >   signal_focus_out_event()
> > 
> > is emitted when the focus is lost, and for a Gtk::Entry,
> > 
> >   signal_activate()
> > 
> > is emitted when Enter is pressed in the entry.  I usually use both.
> > 
> > 
> 
> 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list




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