[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-app-devel
Subject:    re: return focus to entry
From:       Michal ROMAN <michal.roman () nov ! sk>
Date:       2001-09-28 6:19:22
[Download RAW message or body]

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


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic