in reply to Re: Wx::RichTextXMLHandler->LoadFile fails to load file into buffer.
in thread Wx::RichTextXMLHandler->LoadFile fails to load file into buffer.
Hey Anon! Spot on. The correct code is
my $XML_handler = Wx::RichTextXMLHandler->new; my $RTC_Buffer = $self->{rich_text_ctrl_1}->GetBuffer(); $RTC_Buffer ->AddHandler($XML_handler); $self->{rich_text_ctrl_1}->LoadFile("output.xml");
Thanks and regards
|
|---|