Re: I have some problems here... can anyone help me ?
| From: | Andrei Zmievski | Date: | Mon, 02 Jul 2001 13:24:37 +0000 |
| Subject: | Re: I have some problems here... can anyone help me ? | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2025@lists.php.net to get a copy of this message | ||
On Sun, 01 Jul 2001, Mauro Ferreira wrote:
> Can you tell me how to: or declare internal methods in 'connect', or
> avoid the 'global' in the event handler functions ?
>
> Or maybe do something like:
> $this->cmbBoxList->connect('select-child','$this->index=$pos');
Use this syntax:
$this->cmbBoxList->connect('select-child', array($this, 'methodName'));
This will connect signal to your object's "methodName" method.
-Andrei
* A feature is a bug with seniority. *