Problem with passing objects - GtkFixed

From: Date: Fri, 14 Dec 2001 23:01:59 +0000
Subject: Problem with passing objects - GtkFixed
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-863@lists.php.net to get a copy of this message
Im having issues with passing GtkFixed (named fxdFormBoxes) to another function... the code is as follows: function frmLoadMembModifiers($list, $listed, $fxdFormBoxes) { $number = $list->child_position($listed); if($number == "0") { $labeltest = &new GtkLabel("This is a test"); $fxdFormBoxes->put($labeltest, 50, 10); $labeltest->show(); } } // End func(frmLoadMembModifiers) $fxdFormBoxes = $fileCompareRecEdt->get_widget('fxdFormBoxes'); $combo = &new GtkCombo(); $list = $combo->list; $items = array("Last Name", "First Name", "MI", "Date of Birth", "SSN"); $list_items = array(); foreach($items as $listed) { $show_items = $list_items[] = &new GtkListItem($listed); $show_items->show(); } $list->append_items($list_items); $list->set_selection_mode(GTK_SELECTION_SINGLE); $list->connect('select-child', 'frmLoadMembModifiers', $listed, $fxdFormBoxes); $fxdSelFldChng->put($combo, 100, 10); $combo->show(); // End code It looks right, havent had a problem like this before but it returns the dreaded "Call to a member function on a non- object" mesg. Thanks in advance guys. Andrei... Read PHP Dev Cookbook... Excellent book, good job.

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