Re: [gtkmm] focus

>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.


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