re: return focus to entry
- From: Michal ROMAN <michal roman nov sk>
- To: gtk-app-devel-list gnome org
- Subject: re: return focus to entry
- Date: 28 Sep 2001 08:19:22 +0200
On _t, 2001-09-27 at 16:54, Carlos Pereira wrote:
In case if data are wrong I'd like to return focus back
to the wrong entry. How can I do this?
This might be what you want:
gtk_widget_grab_focus (GTK_WIDGET (entry));
gtk_entry_select_region (entry, 0, entry->text_length);
OK, but where I have to put this code in my program? In
"focus_out_event" callback?
I am not sure that your approach is very user-friendly though...
Can you advise me better approach to chack data?
Thanks.
Michal
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]