Doubt about menufactory
| From: | Iuri Fiedoruk | Date: | Thu, 08 Mar 2001 14:49:35 +0000 |
| Subject: | Doubt about menufactory | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-563@lists.php.net to get a copy of this message | ||
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? :)
--
Iuri Fiedoruk
Santa Maria, RS, Brazil