Re: Label Alignment



Jay LeBlanc wrote:

> Thanks Darin Fisher and Caleb Land for your replies.  That worked great
> for that label but it doesn't seem to work well for a multi-line label.
> The label is attached to a large section of a table and seems to want
> to center each line again.  Any ideas?
>
> Thanks,
> Jay
>
>
> -----------------------------------------------------
> http://eo.yifan.net
> Free POP3/Web Email, File Manager, Calendar and Address Book
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list

Make sure you are setting both the alignment and the justification....

gtk_misc_set_alignment(...)
gtk_label_set_justify(...)

Are you calling both functions?  The justification is, by default,
centered.
Think of the label as existing in a box, that is just large enough to
contain
the text.  The alignment of the box, is its (x,y) offset within its
container.
The justification effects the layout of text within the box.  For single
line
labels, the justification should never matter (I think).

Hope this helps...
Darin





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]