Re: Manual entry for GtkAlignment

From: Date: Thu, 03 Nov 2005 15:52:24 +0000
Subject: Re: Manual entry for GtkAlignment
References: 1 2 3  Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-1610@lists.php.net to get a copy of this message
> 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. -- Regards/MfG, Christian Weiske

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.doc (#1610) next »