Re: Newbie question - GTK focus order control
- From: "William D. Ezell" <wdezell snowhill com>
- To: Havoc Pennington <hp redhat com>
- Cc: GTK App devel mailing list <gtk-app-devel-list gnome org>
- Subject: Re: Newbie question - GTK focus order control
- Date: Fri, 25 May 2001 07:49:30 -0500
Ah. That would explain why I've not seen altering it addressed.
So, to implement a design that makes the best of the default behavior what
should one expect that behavior to be? Is order determined by the order in
which the widgets are created in code or by their final positions in the
container/window/whatever (e.g., something like order = upper-left to
bottom-right)?
I hope the answer is the former, because the latter would preclude
potentially useful layouts like multi-columnar arrangments where you'd fill
in a bunch of stuff top-to-bottom on the left side of an arrangement before
comitting via button(s) on the right.
Sorry for 50 questions up front. I know "code and ye shall see" will
reveal all things but I'm still doing more evaluation than design right now.
Thanks,
Bill
--On Thursday, May 24, 2001 10:58:45 PM -0400 Havoc Pennington
<hp redhat com> wrote:
"William D. Ezell" <wdezell snowhill com> writes:
I'm about to tackle my first GUI Linux project and am doing all the
reading I can on GTK but have not yet seen anything addressing what
seems a most basic issue -- how does one establish focus order amongst
multiple GTK controls on a form (akin to VB's "tab order" properties).
Is order fixed in an upper-left to bottome-right sequence or is it
tailorable?
It is not changeable in GTK 1.2, but your question is a good one, this
feature is useful. GTK 2 provides a better default order and also
gtk_container_set_focus_chain() which sets the focus order for a
container.
Havoc
----------------------------------------------------------------------
Help stop Spam/UCE. Visit http://www.cauce.org
----------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]