Toggle Button
| From: | will at 25sucks dot com | Date: | Fri, 16 Dec 2005 23:44:43 +0000 |
| Subject: | Toggle Button | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-6414@lists.php.net to get a copy of this message | ||
I'm having trouble with this toggle button. Keeps returning "call to a
member function of non-object".
I checked my glade file and the toggle is named "chkStart". And it's
utilizing the method bound by connect().
It just doesn't like the call to $chkStart->get_active()
$glade = &new GladeXML("frmmain.glade");
$chkStart = $glade->get_widget("chkStart");
$chkStart->connect("toggled","chkStart_toggled");
function chkStart_toggled()
{ if ($chkStart->get_active == GTK_STATE_ACTIVE)
echo "Active";
else
echo "Inactive";
return;
}
any ideas?
will