[10372] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: alignment question

daemon@ATHENA.MIT.EDU (Dave Cole)
Tue Nov 24 09:54:20 1998

To: gtk-list@redhat.com
From: Dave Cole <dave@dccs.com.au>
Date: 25 Nov 1998 01:52:38 +1100
In-Reply-To: "Ostroff, Jack H"'s message of "Tue, 24 Nov 1998 09:46:02 -0500"
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

>>>>> "Ostroff" == Ostroff, Jack H <jack_h_ostroff@groton.pfizer.com> writes:

Ostroff> I'm trying to create a window (actually just part of a
Ostroff> window) with a column of widgets (some buttons, some combos,
Ostroff> some menus) and I want each to have a label to it's left, but
Ostroff> I want the labels to all be right justified, i.e., up against
Ostroff> the button or combo.  If I put each label and button in an
Ostroff> HBox, I can't get all the buttons/combos the same width.  If
Ostroff> I put all the labels in one VBox and all the buttons etc in a
Ostroff> second VBox I can get the right vertical alignment, all the
Ostroff> buttons to fill the width of their VBox and thus all the same
Ostroff> width, but the labels are all centered in their VBox.  Have I
Ostroff> missed some simple way to get all the labels right aligned?

I think you should really be looking at the GtkTable widget.  From
your description, it is exactly what you need.  The best way to figure
out how to use most widgets is to grab a copy of glade from
http://glade.pn.org/ and check out the code it produces.

- Dave

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS dpu s-:+ a C++$ ULS++$ P+++$>++++ L++>+++$ E+>++ W N++ !o K w++$ O !M-
!V(-) PS+ PE- Y+ PGP !t-- 5++ X R tv b+ DI+++ D G e++ h--- r+++ y++++
------END GEEK CODE BLOCK------

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post