On 28/11/2013 04:13, Ian Macdonald wrote:
Wx::MemoryOutputStream doesn't seem to be supported; is there any way
of doing this simply?
Hi Ian,
I do something like this:
$i_RTC_panel->{Ctl_Report_Text_Txt} = Wx::RichTextCtrl->new(
$i_RTC_Object -> {i_RTC_panel}, wxID_ANY, '', wxDefaultPosition, $size,
wxNO_BORDER );
.
.
.
stuff.
.
.
$i_RTC_panel->{Ctl_Report_Text_Txt}->SaveFile($file);
You'll probably need some xml handlers in there.
This is the opposite:
$i_RTC_panel->{Ctl_Report_Text_Txt}->LoadFile($default_xml_file);
Then I open it as a text file to play with it.
Sorry for the rushed answer, I'm just on my way out.
Regards
Steve.