Bill Barnes wrote:
>
> Hi All:
>
> My first glade screen requires 2 name and address fields.
> This question has to do with a vertical box expanding horizontally when it
> gets a widget.
> The layout should be roughly......
>
> xxxxxx xxx ______ xxxxxx xxx _____
> xxxxxx _____________________________ xxxxxx _________________________
> _____________________________ _________________________
> etc
>
> I can get approximately what I want in the left name layout, but in the
> process it expands into the space for the right name, destroying the screen
> symmetry
> Here are my steps.
> 1. A vertical pane with 2 panes.
> 2. A horizontal box of 2 columns in the top pane.
> 3. A vertical box of 6 rows in the leftmost horizontal box.
> 4. Fixed positions in the top row to hold a couple of labels and an entry
> field that needs only 5 characters.
> 5. Placing an entry field appears to cause the expansion of the left name
> space. It must have a default size.
> Have not found a way of restoring the right name space.
> Also tried a horizontal box of 3 columns in the top left row.
You shouldn't really mix GtkFixed containers with boxes & panes.
GtkFixed is only really meant to be used for complete windows, and even then
its use is discouraged.
Tables are often useful for form-like things, so you can line up all the labels
down the left-most column easily.
Do you understand the 'Place' properties, which let you specify whether widgets
expand as the parent container expands, and whether they fill their allocated
area? Newcomers to GTK+ often miss these. The properties are only available for
widgets in particular containers like tables & boxes.
Damon
+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.