Hi All, I'm getting "unable to resolve overloaded method for "Wx::RichTextCtrl::WriteImage" at /home/steve/Documents/Endoscopia/RichText_Editor.pl line 506" from code:
sub on_click_insert_image{ my ($i_frame, $event) = @_; my $file = Wx::FileSelector('Choose a media file'); # Select video file $i_frame->{Ctl_Report_Text_Txt}->WriteImage(Wx::Image->new($file, wxBITMAP_TYPE_PNG)); return $i_frame; } But the same code with: " $i_frame->{Ctl_Report_Text_Txt}->AddImage(Wx::Image->new($file, wxBITMAP_TYPE_PNG)); " Works fine (but appends, rather than inserting the image). Does anyone know the correct syntax for WriteImage? Have a good day. Regards Steve