Re: Question about gtk_label_set_justify()



In its description of gtk_label_set_justify the GTK+ Reference Manual says:

    “gtk_label_set_justify() has no effect on labels containing only a single line.”

 

This follows the standard behavior of text justification from the printing industry:  Single lines of text and the final line of a block of text (paragraph) are not justified. 

 

Most applications I’ve seen handle this problem by choosing whichever alignment makes it look the best (left, right, or center).  Based on the various apps I have seen, most writers tend to use right justified labels when the label length’s vary too much, but that is not a rule.  I don’t know if it’s possible in your case, but when it is possible, I try to select row labels of this nature so they are all about the same length.  After all, even if you do manage to find a way to justify your labels, you may decide that the wide-varied text spacing makes them look funny.  That’s why single lines and final lines aren’t justified.

 

  Mike

 

 

> What I want to achieve is  to make the label's text distributed

> across the label.  I have many label widgets, they are packed

> into a table 's first column



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