Re: Toggle Button
| From: | Scott Mattocks | Date: | Sat, 17 Dec 2005 22:09:52 +0000 |
| Subject: | Re: Toggle Button | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6421@lists.php.net to get a copy of this message | ||
Christian Weiske wrote:
Also, you need to put the variable in the function signature: function chkStart_toggled($chkStart) Scottfunction chkStart_toggled() { if ($chkStart->get_active == GTK_STATE_ACTIVE)Two: 1. get_active is a method and needs to be called as "$chkStart->get_active()" 2. get_active() returns a boolean value IMO. So checking if ($chkStart->get_active()) {..} should do the job.echo "Active";elseecho "Inactive";return; }