Re: $widget->get_arg("height"); - can we make this work?
| From: | Steph | Date: | Fri, 11 Jan 2002 15:29:43 +0000 |
| Subject: | Re: $widget->get_arg("height"); - can we make this work? | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-315@lists.php.net to get a copy of this message | ||
$gdkwin = $clist->window;
echo $gdkwin->height."\n";
returns the height of the widget in mm, bear in mind that containers don't take up screen space
until they have contents so you're going to have to do it all with algebra :-(
I can't make get_arg() work either, I think maybe I'm missing something somewhere?
----- Original Message -----
From: "Alan Knowles" <alan@akbkhome.com>
To: <php-gtk-dev@lists.php.net>
Sent: Friday, January 11, 2002 9:27 AM
Subject: [PHP-GTK-DEV] $widget->get_arg("height"); - can we make this work?
> I'm not sure why, but it appears get_arg doesnt work - can somebody
> prove me wrong :)
>
> in theory, the widget object has alot of other fields x,y,width,height
> etc. that could be exported.
> eg.
> $widget->height - could be defined in defs..
>
> - I was attempting to do a clist which shows database entries, and
> fetches only enough to fill the clist, but since I cant work out how big
> the clist is, i cant calculate how many rows to get...
>
> regards
> alan
>
>
> --
> PHP-GTK Development Mailing List (http://gtk.php.net/)
> To unsubscribe, e-mail: php-gtk-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-gtk-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>