dinamically sized messagebox
| From: | Gabor Hojtsy | Date: | Mon, 14 Oct 2002 13:09:05 +0000 |
| Subject: | dinamically sized messagebox | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2535@lists.php.net to get a copy of this message | ||
Hi!
I would like to put out a dinamically sized message box, with
a GtkLabel displaying the message. The problem is that I cannot
get the dimensions of a GtkLabel created using any given text.
$label = new GtkLabel("Some text to test it's dimensions");
var_dump($label->allocation);
This prints out:
object(GtkAllocation)(4) {
["x"]=>
int(-1)
["y"]=>
int(-1)
["width"]=>
int(1)
["height"]=>
int(1)
}
This is not the actual size of the object, it's sure ;) I tried
to put the label to a container, or ->show() before calling var_dump,
but none of these tries modified the results...
Can someone please help me to open a dinamically sized messagebox?
BTW GtkAllocation is not documented in the PHP-GTK docs... ;((
Thanks in advance,
Goba