Re: Left justify doesn't
| From: | Jerome BAILLEUL | Date: | Fri, 25 Apr 2003 22:16:22 +0000 |
| Subject: | Re: Left justify doesn't | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-3303@lists.php.net to get a copy of this message | ||
To justify label left, use $label->set_alignment(0,5); instead of
$label->Set_Justify('GTK_JUSTIFY_LEFT');
> Message du 25/04/03 23:18
> De : Benjamin Smith <bens@effortlessis.com>
> A : php-gtk-general@lists.php.net
> Copie à :
> Objet : [PHP-GTK] Left justify doesn't
> For some reason, the below code won't left justify the text in the GtkLabels.
> Why not? What am I missing?
>
> -Ben
>
> $labels=array(
> 'a',
> 'abc',
> 'Now is the time for all good men to come to the aide of their country'
> );
>
> $vbox=&New GtkVbox();
> $vbox->Show();
>
> reset($labels);
> while (list($k, $label)=each($labels))
> {
> $label=&New GtkLabel($label);
> $label->Set_Justify('GTK_JUSTIFY_LEFT');
> $label->Show();
> $vbox->Pack_Start($label, false, false);
> }
>
> $win=&New GtkWindow();
> $win->Add($vbox);
> $win->Show();
>
> gtk::main();
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>