RE: [PHP-GTK] Why?

From: Date: Tue, 13 Mar 2001 22:53:25 +0000
Subject: RE: [PHP-GTK] Why?
References: 1 2  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-819@lists.php.net to get a copy of this message
ok, Steph I'll be waiting for your help with this. Thanks!! AfterGlow ----- Mensaje original ----- De: "Steph" <Steph.Fox@btinternet.com> Para: "Guido" <snoop@velocom.com.ar>; <php-gtk@lists.php.net> Enviado: Martes, 13 de Marzo de 2001 07:38 p.m. Asunto: Re: [PHP-GTK] Why? > Funnily enough that's the first thing I tried too, mine works now. > > Hold on 5 minutes & I'll be on yr case! > > ----- Original Message ----- > From: "Guido" <snoop@velocom.com.ar> > To: <php-gtk@lists.php.net> > Sent: Tuesday, March 13, 2001 10:32 PM > Subject: [PHP-GTK] Why? > > > Hey yoo!! How are you guys... > > Look, I've tried to modify the fileselection.php script so when you click the ok button in the file selection, the file selected is printed on the command screen. Well, this is what I did first: > > function EndDialog($name) { > print $name . "\n"; > return true; > } > > function FileDialog() { > $fs = &new GtkFileSelection('File Selection Example'); > $ok_button = $fs->ok_button; > $ok_button->connect('clicked', 'enddialog($fs->get_filename())'); > $ok_button->connect_object('clicked', array($fs, 'destroy')); > $cancel_button = $fs->cancel_button; > $cancel_button->connect('clicked', 'canceldialog'); > $cancel_button->connect_object('clicked', array($fs, 'destroy')); > $fs->show(); > } > > > This didn't work and I think that it was a fatal error too. > > Well, can anybody tell me please how can I pass parameters to any function from a connect call? or should I use other method? > Thank you very much. > > AfterGlow. > > >

« previous php.gtk (#819) next »