Re: Prima::CheckBox

From: Anton Berezin <tobez_at_tobez.org>
Date: Fri, 30 Sep 2005 14:19:06 +0200
To: lanas <lanas_at_securenet.net>

On Fri, Sep 30, 2005 at 08:09:05AM -0400, lanas wrote:
> Hello all,
>
> In the Prima version I got from CPAN there's no documentation about
> Prima::Checkbox. I'd like to know how to read it's state and how to disble
> (render grey) such a check box.

You should be able to find that information in the Prima::Buttons
documentation (checkbox is a weird kind of a button).

That said,

   if ($cb->checked) { # do something }

and

   $cb->enabled(0); # to "render gray"

should do what you want.

\Anton.

-- 
An undefined problem has an infinite number of solutions.
-- Robert A. Humphrey
Received on Fri 30 Sep 2005 - 14:19:09 CEST

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:06 CET