Re: children()

From: Date: Tue, 03 Jul 2001 08:46:39 +0000
Subject: Re: children()
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-2036@lists.php.net to get a copy of this message
will return an array of the objects you have in the container by type-name, but not their handles/references which is what's actually needed here. yes, you're right that's not what i m looking for; children() is not my function is that case
nb it's only possible to have one child in a GtkWindow anyway - usually that child will be a container with multi-child capabilities. yes, i ve tried your piece of code and it only gave the vbox belonging to my window (logic); i thought children() would give me all children ( not only first generation )
You cannot then use set_focus() using the type .. obviously ... it seems unlikely you'd be able to use the array count to get a handle to the child either, correct me if I'm wrong someone. I don't understand what you mean here ;)
Why don't you have variables on these children? Could you send a snippet of yr code in to the list, please? I think it s what i m going to do : use globals (globals are used a lot in php isn'it?)
//fonction de configuration function configure($widget) { global $glob; $fenetre=&fenetre_config(); $enfants=$fenetre->children();
       //not working : here is my problem
$enfants['entry1']->set_text($glob['chemin_majix_lib']);
       //not implemented
       /*$glob['chemin_majix_dir']
$glob['fichier_majix_conf'] $glob['template_majix'] $glob['chemin_java'] $glob['ftp_server'] $glob['ftp_login'] $glob['ftp_password']*/ } //fonction de creation de la fenetre de configuration function fenetre_config() { $window3 = &new gtkwindow(GTK_WINDOW_DIALOG);
       $entry1= &new gtkentry();
return $window3; } _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

« previous php.gtk (#2036) next »