Hi,

I'm trying to delete a photo and a sizer slot from a sizer using some code
as follows:

Get the slot the photo is in:

-    my $item =
$self->{Ctl_Sizer_3}->GetItem()->$self->{"Ctl_Post_Exam_Videos_Sizer_6_".$gl
_edit_mode};

Followed by delete it using Remove:

-    $self->{"Ctl_Post_Exam_Videos_Sizer_6_".$gl_edit_mode}->Remove($item);

But It's not working. I'm getting message:

"unable to resolve overloaded method for Wx::Sizer::GetItem at ...

So I don't even get to the second line. I originally tried:

-
$self->{"Ctl_Post_Exam_Videos_Sizer_6_".$gl_edit_mode}->Remove($self->{"Ctl_
Video_Tab_Video_".$gl_edit_mode."_Bmp"}->GetItem());

But I got the same error message:

All ideas welcome.

Regards

Steve

<<Blank Bkgrd.gif>>

Reply via email to