priyaviswam has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Select all/Select None option in the perl check box

Replies are listed 'Best First'.
Re: Select all/Select None option in the perl check box
by moritz (Cardinal) on Jan 23, 2012 at 10:08 UTC
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Select all/Select None option in the perl check box
by Xiong (Hermit) on Jan 23, 2012 at 10:28 UTC

    [x] Yes

    I'm not the guy you kill, I'm the guy you buy. —Michael Clayton
Re: Select all/Select None option in the perl check box
by thundergnat (Deacon) on Jan 23, 2012 at 16:33 UTC

    Updated: Misread original question. Updated code.

    Is it possible? Yes. Here is one way to do it. (Perl/Tk. May need to adapt it for your particular GUI)

    use warnings; use strict; use Tk; my %w; $w{mw} = MainWindow->new; my $col = 0; for my $cb ( 1 .. 5 ) { $w{cb}{$cb} = $w{mw}->Checkbutton( -text => $cb, )->grid( -row => 0, -column => $col++ ) } $w{cba} = $w{mw}->Checkbutton( -text => 'All', -command => sub{ for ( values %{$w{cb}} ) { $w{cba}->{'Value'} ? $ +_->select : $_->deselect } }, )->grid( -row => 0, -column => $col++ ); MainLoop;
Re: Select all/Select None option in the perl check box
by Anonymous Monk on Jan 23, 2012 at 20:48 UTC
    IMPOSSIBLE! It can never be done.
Re: Select all/Select None option in the perl check box
by Anonymous Monk on Jan 23, 2012 at 11:03 UTC
      Hi there,

      Can i know what programming language you are using and what is your platform. There are many ways present to do what you have asked be little brief.

        You replied to someone giving advice on GUI automation, not the person asking the question. Also priyaviswam has clarified the question somewhat.