Re: Widget focus



On Thu, Aug 03, 2006 at 05:22:46PM +0200, Markus Uhle wrote:
Hi!

I have a strange problem with the "moving" of the focus of the widgets
in a window (GTK1.2.10 - Embedded System):

[...]

It seems, that something like "the window" or "the container" gets the 
focus.

Don't know currently about GTK1, but in GTK2 you can:

  * fix the "tab order" of the widgets whithin the container with
    gtk_container_set_focus_chain()
  * for finer control handle the "focus" signal yourself (setting the
    focus on whichever widget with gtk_widget_grab_focus(), depending on
    the "direction" which came with the event).

See f.e. <http://developer.gnome.org/doc/GGAD/sec-widgetindetail.html#Z160>

Hope this gives you a track to follow for GTK1.2

-- tomas


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