List Info

Thread: Widget Alignment




Widget Alignment
user name
2006-08-09 11:40:02
> You've packed everything with "expand" and
"fill" true, which means that
> the
> available space is divided up among the widgets whether
they need it or
> not.
> 
> For the "Device" and "Paper
Size" labels, their internal alignment is
> centered, so the excess space is spread on either side,
resulting in the
> left
> edges not aligning.

Thanks, yes I understand that better now.

> The problem with the radiobuttons is essentially the
same.

Limiting myself to packing options, I still can't get the
radiobuttons to line up.

> *  Explicitly set the internal alignment of the labels
for left, like
> "$labeld->set_alignment(0.0, 0.5)". 
This doesn't change the amount of
> leftover space, so you may want also to pack the labels
with expand and
> fill
> false, but the comboboxes with expand and fill true.

I assume that this is dangerous, because although it might
look OK, for instance, in Ubuntu, it might be different in
Fedora Core. Or don't styles/themes affect things?

> *  Use SizeGroups to ensure things line up.

Would you point me at the documentation for this, please.

> *  Use a Table instead of VBox of HBoxes.

I will have a go at this, too.

Thanks for the help.

Jeff
_______________________________________________
gtk-perl-list mailing list
gtk-perl-listgnome.org

http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Widget Alignment
user name
2006-08-09 11:52:12
On Aug 9, 2006, at 7:40 AM, Ratcliffe, Jeffrey (Peters)
wrote:

>> *  Explicitly set the internal alignment of the
labels for left, like
>> "$labeld->set_alignment(0.0, 0.5)". 
This doesn't change the  
>> amount of
>> leftover space, so you may want also to pack the
labels with  
>> expand and
>> fill
>> false, but the comboboxes with expand and fill
true.
>
> I assume that this is dangerous, because although it
might look OK,  
> for instance, in Ubuntu, it might be different in
Fedora Core. Or  
> don't styles/themes affect things?

Themes affect the font size and color and sometimes widget
spacing,  
but they shouldn't affect alignment.


>> *  Use SizeGroups to ensure things line up.
>
> Would you point me at the documentation for this,
please.

All that i know of is at http://de
veloper.gnome.org/doc/API/2.0/gtk/ 
GtkSizeGroup.html



--
"Quit hittin' yourself!  Quit hittin'
yourself!"
    -- Elysse, playing with a newborn baby.

_______________________________________________
gtk-perl-list mailing list
gtk-perl-listgnome.org

http://mail.gnome.org/mailman/listinfo/gtk-perl-list
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )