Re: Re: Re: Re: Re: Re: [PHP-GTK] CList Co de - Alternating row/field colors

From: Date: Fri, 19 Oct 2001 21:00:00 +0000
Subject: Re: Re: Re: Re: Re: Re: [PHP-GTK] CList Co de - Alternating row/field colors
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-339@lists.php.net to get a copy of this message
I figured it out If i name a menuitem like exit1 The code would be: $menu_exit = gx2->get_widget('exit1'); $menu_exit->connect('activate', '<function called>', $args); -----Original message----- From: "MarkusFischer" <mfischer@guru.josefine.at> To: "PQAdministrator" <pqadmin@physicianquest.net> Cc: "PHP-GTKdevellist" <php-gtk-dev@lists.php.net> Date: 10/19/2001(Fri)10:40 Subject: Re: Re: Re: Re: Re: [PHP-GTK] CList Code - Alternating row/field colors 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 Troy McComasNetworks/System Admin.PhysicianQuest.comE-Mail Me!Office - (818)550-8777 Cell- (626)255-9833 <!-- --> Powered by PhysicianQuest.com

« previous php.gtk.general (#339) next »