Re: Toggle Button
| From: | Christian Weiske | Date: | Sat, 17 Dec 2005 09:10:14 +0000 |
| Subject: | Re: Toggle Button | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6417@lists.php.net to get a copy of this message | ||
Will,
> function chkStart_toggled()
> { if ($chkStart->get_active == GTK_STATE_ACTIVE)
> echo "Active";
> else
> echo "Inactive";
> return;
> }
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.
--
Regards/MfG,
Christian Weiske
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc