Re: Doubt about menufactory

From: Date: Thu, 08 Mar 2001 14:50:11 +0000
Subject: Re: Doubt about menufactory
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-564@lists.php.net to get a copy of this message
On Thu, 08 Mar 2001, Iuri Fiedoruk wrote: > I have this item of menu factory > array('/_File/_Connect', '<control>C', 'conectar', 1, > ''), > This is inside a function main_window() and calls a function that connects do > a client, and out puts the text from fsockopen on a $textarea. > The problem is that $textarea is created on main_window and called on > conectar(). I tryied declaring $textarea global on both functions, but it > didn't worked. > Is there a way to pass $textarea as argument on the item factory array? > Or I am doing something wrong to global not work? :) You can add an additional element to the factory item, which is an array of extra arguments to pass to the callback. -Andrei * We are not a clone. *

« previous php.gtk (#564) next »