Re: hiding the children
| From: | Steph | Date: | Wed, 24 Oct 2001 12:06:05 +0000 |
| Subject: | Re: hiding the children | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-422@lists.php.net to get a copy of this message | ||
Thanks for that. Hope you don't mind that I adapted your old js to produce it..
$children = $vbox->children;
for($x =0; $x < sizeof($children); $x++) {
$child = $children[$x]->widget;
echo $child->get_name()."\n";
}
- kinda thing ought to help you find which position in the array the child you want to reach
actually holds, saves a lot of legwork later as you can then call the child simply as
$favechild = $vbox->$children[3]->widget;
(children being the name of the array not the contents).
Most of this info's in the official PHP-GTK manual now :)
----- Original Message -----
From: "Simon Wheeler" <fire@firepages.org>
To: <php-gtk-general@lists.php.net>
Sent: Wednesday, October 24, 2001 8:48 AM
Subject: [PHP-GTK] hiding the children
Always a good idea :)
Thanks for the feedback everbody on my image and php.ini questions, its much appreciated and has
helped me no end.
Next :).... I have a GtkVbox ($GTVB) which has a child, a GtkBbox ($V_container), and I do not know
how to hide the child via the parent.
The child is one of many created in a function loop, and from outside that function I can not appear
to get at the child to hide it.
I have tried globalising all and sundry, but to no avail, so I was wondering how I can hide() or
destoy() the child via the parent. i.e. $yaks=parent.child.hide(); , can anyone give me the correct
syntax?, or how I should be going about this?
As you may notice this OOP stuff is pretty new to me, I have avoided it like the plague but now I
have little choice, at least I realise now why I have avoided it like the plague.
Steph, I did not realise that you had so much good info on deafcat.f2s , its the first time (last
night) that the DB has ever been up running for me, but I got loads of help from your examples this
time, and saved this list from several other Q's that I was gonna ask :) .
Regards,
Simon Wheeler.
firepages.