[Gtk-sharp-list] Switching focus on objects as pressing "tab" key ?

Jesper K. Pedersen linux at famped.dk
Mon Mar 17 14:01:20 EDT 2008


On Mon, 17 Mar 2008 08:43:09 -0700
Peter Johanson <peter at peterjohanson.com> wrote:

> On Sun, Mar 16, 2008 at 10:23:53PM +0100, Jesper K. Pedersen wrote:
> > 
> > I had hoped there were either a way to "inject" a keycode in the gtk
> > key event system or a simple way to switch to the next gtk.entry
> > object.
> 
> Try looking at Gtk.Widget.ChildFocus (DirectionType). See:
> 
> http://go-mono.com/docs/monodoc.ashx?link=M%3aGtk.Widget.ChildFocus(Gtk.DirectionType)
> 
> It's usually for actual custom widget implementations, but may work
> for what you need.
>

And that works like a charm - basically setting all the entry's
activated eventhandler to a single function that does the
ChildFocus(DirectionType.TabForward) method.

Thank you for the assistance.

Best regards
Jesper KP


More information about the Gtk-sharp-list mailing list