Hi all,
I have a Notebook:
my $notebook = Wx::Notebook->new( $self,
-1,
wxDefaultPosition,
wxDefaultSize,
wxNO_FULL_REPAINT_ON_RESIZE|wxCLIP_CHILDREN
);
and some panels:
my $panel_spokes = Wx::Panel->new( $notebook, # parent window
-1, # ID
);
my $panel_log = Wx::Panel->new( $notebook, # parent window
-1, # ID
);
my $panel_about = Wx::Panel->new( $notebook, # parent window
-1, # ID
);
$notebook->AddPage( $panel_spokes, "Text 1", 0 );
$notebook->AddPage( $panel_log, "Text 2", 0 );
$notebook->AddPage( $panel_about, "Text 3", 0 );
On $panel_spokes there is a checkbox that should be unchecked if you are not at
this panel. So I tried this:
EVT_NOTEBOOK_PAGE_CHANGED($notebook, $panel_spokes, sub {
$panel_spokes->{CheckBox}{"akt_checkbox"} -> SetValue(0);
$self->{TIMER} -> Stop;
});
But this doesn't work. $self instead of $notebook doesn't work, too.
Thanks for any help
Daniel
Lesen Sie Ihre E-Mails auf dem Handy.
www.yahoo.de/go