Re: Can't Justify GtkLabels
| From: | Steph | Date: | Wed, 29 Jan 2003 15:24:28 +0000 |
| Subject: | Re: Can't Justify GtkLabels | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2981@lists.php.net to get a copy of this message | ||
oops, I'm talking through my bottom again. It's not a GtkAlignment per
se, it's a pair of GtkMisc properties named 'xalign' and 'yalign'.
GtkLabel is descended from GtkMisc.
Call the GtkMisc method set_alignment() from the $label.
----- Original Message -----
From: "Steph" <sfox@php.net>
To: "Richard Gabriel" <rgabriel@coresense.com>;
<php-gtk-general@lists.php.net>
Sent: Wednesday, January 29, 2003 3:04 PM
Subject: Re: [PHP-GTK] Can't Justify GtkLabels
> GtkAlignment :)
>
>
> ----- Original Message -----
> From: "Richard Gabriel" <rgabriel@coresense.com>
> To: <php-gtk-general@lists.php.net>
> Sent: Wednesday, January 29, 2003 2:58 PM
> Subject: [PHP-GTK] Can't Justify GtkLabels
>
>
> I am having trouble right or left justifying GtkLabels. I have tried
a
> few methods, but they still always center align. Here is what I have
> tried:
>
> 1. I set the size of the GtkLabel with set_usize and set the
> justification with set_justification(GTK_JUSTIFY_RIGHT). That did not
> work.
>
> 2. I created a GtkVBox with a specific size and tried to justify them
to
> the right of the box. That didn't work either.
>
> Has anyone else had this problem and how would I solve it? Thanks!
>
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>