Helen Craigman <[email protected]> writes:
> I am trying to use Wx::CheckListBox. In general, it works, but I need to
> checkmark some boxes programatically.
> In the wxWidgets documentation, it says this can be done using the Check
> method:
> (URL:
> http://docs.wxwidgets.org/2.8/wx_wxchecklistbox.html#wxchecklistboxcheck)
>
> ... - I get an error: cannot find method ... in package Wx::CheckListBox.
According to WxDemo. the Check method is fully supported.
package Wx::DemoModules::wxCheckListBox;
use strict;
use base qw(Wx::CheckListBox);
use Wx qw(wxDefaultPosition wxDefaultSize);
use Wx::Event qw(EVT_CHECKLISTBOX);
sub new {
my $class = shift;
my $this = $class->SUPER::new( $_[0], -1, wxDefaultPosition,
wxDefaultSize,
[ qw(one two three four five size seven
eight nine ten) ] );
foreach my $i ( 0 .. 9 ) { $this->Check( $i, $i & 1 ) }
...
return $this;
}
HTH,
-- Johan