Re: GtkVBox: How to delete widgets?

From: Date: Mon, 25 Feb 2002 12:31:02 +0000
Subject: Re: GtkVBox: How to delete widgets?
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1328@lists.php.net to get a copy of this message
That 'reply to' gets me all the time - perhaps time to dump mozilla and use teak :) Alan Knowles wrote:
Sebastian G. wrote:
Geee, I have a GtkVBox with a number of labels in it. I need to change the number of the labels in that box depending on what data I am collecting. -> How can I delete all the labels in that GtkVBox like I do reset a GtkCTree with | $ctree -> clear(); ?
have a look at the container::children() $array = $vbox->children() for ($i=0;$i<count($array);$i++) { $vbox->remove($array[$i]); $array[$i]->destroy(); } then you can just add back to the vbox regards alan
Do I irritate you people posting such threads?
no, you are adding to a growing reference base :)
-- MfG, Sebastian G. <mailseppel@gmx.de>.germany-HH


« previous php.gtk.general (#1328) next »