Re: Left justify doesn't
| From: | Madeleine D. | Date: | Fri, 25 Apr 2003 21:38:26 +0000 |
| Subject: | Re: Left justify doesn't | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3302@lists.php.net to get a copy of this message | ||
Ben -
This may or may not help... I wasn't able to get set_justify to work, but
set_alignment in the same scenario works just fine.
Madeleine D.
At 02:18 PM 4/25/2003 -0700, Benjamin Smith wrote:
>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
>
>