Re: Re: Re: Re: Re: [PHP-GTK] CList Code - Alternating row/field colors
| From: | Markus Fischer | Date: | Fri, 19 Oct 2001 18:40:58 +0000 |
| Subject: | Re: Re: Re: Re: Re: [PHP-GTK] CList Code - Alternating row/field colors | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-141@lists.php.net to get a copy of this message | ||
On Fri, Oct 19, 2001 at 11:29:56AM -0800, PQ Administrator wrote :
>
> The is a need to when Im passing variables through.-----Original message-----
You can do this still too. signal_autoconnect accept an hash of
functions to substitute with your own function/method and
parameters.
Here is a copy from my code, should get you started:
@$gx->signal_autoconnect( array(
// main window
'on_menu_file_quit_activate' => array( array( &$this,
'shutdown')),
'on_mainWindow_destroy' => array( array( &$this,
'shutdown')),
'on_textSqlIn_key_press_event' => array( array( &$this,
'doQuery')),
[...]
The value of the hash is an array with the function to call
following the parameters (not used in this example), it would
look like:
'function_defined_in_glade' => array('call_this_function_instead', $with,
$arguments),
HTH,
- Markus