Re: [gtkmm] focus
- From: Paul Davis <paul linuxaudiosystems com>
- To: "erwan ancel" <erwan ancel free fr>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] focus
- Date: Sat, 08 Feb 2003 12:14:09 -0500
>Does somebody know how to deal with focus in the focus_out callback event ?
>
>I explain my trouble: I am not satisfied of what the user put in a
>Gtk::Entry. On the focus_out event, I want to re-focus on this entry, but it
>seems that the Gtk::Window::set_focus(myEntry) doesn't work in this case.
>Maybe because the main loop makes an other set_focus after my callback
>function. Does anyone have a solution ?
don't use focus_out to validate user entry. use key_release_event.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]