On 3.1.2010 22:57, Steve Cookson wrote:
I don't know about th XML format, but here is how I get HTML from the
widget:
my $buffer = $richtext->GetBuffer;
open(my $fh, '>', \my $html) || die 'cannot open';
my $html_handler = Wx::RichTextHTMLHandler->new;
$html_handler->SaveFile($buffer, $fh);
Hi Jiri
That looks great. I'd rather use HTML anyway as it's more "industry
standard".
Can you do a "LoadFile" too?
Probably, but I did not get to it yet.
There seems to be a "Wx::RichTextHTMLHandler"
with DoSaveFile and DoLoadFile.
Just note that I use SaveFile on Wx::RichTextHTMLHandler. DoSaveFile
doesn't seem to be available from wxperl. So I tried 'SaveFile' and it
worked.