I want to do something similar, and I've tried to follow the
suggestions put forth in this thread, but to no avail.
Objective: To vertically center a label in an hbox in a vbox (or
in any other arrangement of widgets that would produce this pattern)
It's easy to control the horizontal position
Debby,
I think the problem is that you have a \n at the end of your label:
buffer = g_strdup_printf (variable %d\n, j);
Thus, in your attempts to align the label, you're attempting to align two
lines of text instead of one.
I modified your code such that there was no \n and there was
I want a button to be centered horizontally in a vbox like this:
--
| -- |--- vbox
| |Button||
| -- |
--
Notice empty space above, below and to right and left.
How do this
I created a hbox and
I want a button to be centered horizontally in a vbox like this:
--
| -- |--- vbox
| |Button||
| -- |
--
Notice empty space above, below and to right and left.
How do this
I created a hbox and
Playing around with glade, here is what I found to work:
vbox
hbox -- noexpand, nofill
button -- expand, nofill
-
| |
| || |
| | -- |-hbox|--- vbox
| ||Button|| |
| | -- | |
|
Hi,
Christian Seberino [EMAIL PROTECTED] writes:
I want a button to be centered horizontally in a vbox like this:
--
| -- |--- vbox
| |Button||
| -- |
--
Notice empty space above, below and