Re: Manual entry for GtkAlignment
| From: | Jp | Date: | Thu, 03 Nov 2005 16:12:56 +0000 |
| Subject: | Re: Manual entry for GtkAlignment | ||
| References: | 1 2 3 4 | Groups: | php.gtk.doc |
| Request: | Send a blank email to php-gtk-doc+get-1611@lists.php.net to get a copy of this message | ||
Nice ASCII art :)
Think I've got it right. I'll add a line about it to gtkalignment.xml,
and possibly to gtklabel.xml as well.
Christian Weiske escreveu:
>>Seeing as I'm a newbie myself, I'm not sure I get what you mean. I ought
>>to make it clearer that labels should be aligned (and how to do it)
>>using gtkalignment? (gtklabel::set_justify obviously doesn't do this)
>
>
> Just take the following window:
> +-------------------------------------------------+
> | Label |
> +-------------------------------------------------+
>
> What would you do to get it aligned on the left side?
> +-------------------------------------------------+
> |Label |
> +-------------------------------------------------+
>
> $label->set_justify(left);
> Result:
> +-------------------------------------------------+
> | Label |
> +-------------------------------------------------+
>
> If you have multiline text
> +-------------------------------------------------+
> | This is a multiline |
> | text |
> +-------------------------------------------------+
>
> and do set_justify(left), you'll get
> +-------------------------------------------------+
> | This is a multiline |
> | text |
> +-------------------------------------------------+
>
> That's what newbies don't understand: why doesn't it work?
> You have to use GtkAlignment to move the label "box" from the center to
> the left to achieve the desired result: text on the left side.
>
>