Re: GtkFrame y-alignment
| From: | Steph | Date: | Sun, 08 Jul 2001 20:33:13 +0000 |
| Subject: | Re: GtkFrame y-alignment | ||
| References: | 1 2 3 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2097@lists.php.net to get a copy of this message | ||
Wish I'd gone thru the official docs history now! :)
----- Original Message -----
From: "Chris Anderson" <chrisderson@ameritech.net>
To: "Steph" <steph.fox@btinternet.com>; "Mauro Ferreira"
<mauroferreira@enersulnet.com.br>; <php-gtk@lists.php.net>
Sent: Sunday, July 08, 2001 6:58 AM
Subject: Re: [PHP-GTK] GtkFrame y-alignment
Remember a long time ago when I documented this in GtkFrame and gave it to
you? I included that "ignored" tidbit : )
----- Original Message -----
From: "Steph" <Steph.Fox@btinternet.com>
To: "Mauro Ferreira" <mauroferreira@enersulnet.com.br>;
<php-gtk@lists.php.net>
Sent: Friday, July 06, 2001 6:13 AM
Subject: Re: [PHP-GTK] GtkFrame y-alignment
that's thrown me! This sounds like a language problem rather than a coding
problem - gtk site and hitchhiker both carry the same info.
What've I said that's confusing to Brazilians? (ps please keep this off the
list for this part while it's only about my site, thanks)
----- Original Message -----
From: "Mauro Ferreira" <mauroferreira@enersulnet.com.br>
To: <php-gtk@lists.php.net>
Sent: Friday, July 06, 2001 4:20 AM
Subject: Re: [PHP-GTK] GtkFrame y-alignment
Probably not, Steph...
If you remember, i was in troble - and Andrei and you do a lot of help to
me - then, the first solution was alignment, and was solved with:
$align = &new GtkAlignment(0.0,0.5,0.0,0.0); // result from a global
search for 'align'
$table->attach($align,0,1,0,1,GTK_FILL); // in all gtk manual...
$align->show(); // and then a look in 'Hitchhiker's Guide'
$label = &new GtkLabel('Code ');
$label->set_justify(GTK_JUSTIFY_LEFT); // thanks twice, Steph ! Problem 1
solved !
In The Hitchhiker's Guide to PHP-GTK :
&new GtkAlignment (double x_align, double y_align, double x_scale,
double y_scale);
----------------------------------------------------------------------------
positions and sizes a single child widget within a container. The
range of x_align and y_align are 0.0 to 1.0, with 0.0 being top/left, and
1.0 being bottom/right. The range of values for x_scale and y_scale are also
0.0 to 1.0, with 0.0 not showing the child at all and 1.0 (for both)
expanding the child to fill all the available space.
But, in GTK REference
(http://developer.gnome.org/doc/API/gtk/gtkalignment.html):
gtk_alignment_new ()
GtkWidget* gtk_alignment_new (gfloat xalign,
gfloat yalign,
gfloat xscale,
gfloat yscale);
Creates a new GtkAlignment.
xalign : the horizontal alignment of the child widget, from 0 (left)
to 1 (right).
yalign : the vertical alignment of the child widget, from 0 (top) to 1
(bottom).
xscale : the amount that the child widget expands horizontally to fill
up unused space, from 0 to 1. A value of 0 indicates that the child widget
should never expand. A value of 1 indicates that the child widget will
expand to fill all of the space allocated for the GtkAlignment.
yscale : the amount that the child widget expands vertically to fill
up unused space, from 0 to 1. The values are similar to xscale.
Returns : the new GtkAlignment.
Really, i realized that wrote in GTK Reference is the correct, and the
xscale & yscale was ok in phpgtk.
Mauro Ferreira
mauroferreira@enersulnet.com.br
--
PHP GTK Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net
For additional commands, e-mail: php-gtk-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
PHP GTK Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net
For additional commands, e-mail: php-gtk-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net