RE: WxRichTextCtrl buttons

2010-01-09 Thread Steve Cookson
Ok, So here's the answers: >I'm looking at the WxRichTextCtrl buttons on: >http://docs.wxwidgets.org/stable/wx_wxrichtextctrloverview.html >and wondering how to implement them. >Does anyone know where the code is? Thanks to the C++ wx-users group for this: it's in the wxWidgets distribution,

Re: wxRichTextCtrl

2010-01-08 Thread Jiří Pavlovský
Dne 8.1.2010 14:24, Steve Cookson napsal(a): Can you do a "LoadFile" too? Probably, but I did not get to it yet. Hi Jiri, I've tried: line # 53 my $HTML_handler = Wx::RichTextHTMLHandler->new; 54 open (my $fh, "LoadFile ($buffer, $fh); 57 $self->{rich_text_ctrl_1}

RE: wxRichTextCtrl

2010-01-08 Thread Steve Cookson
>> Can you do a "LoadFile" too? >Probably, but I did not get to it yet. Hi Jiri, I've tried: line # 53 my $HTML_handler = Wx::RichTextHTMLHandler->new; 54 open (my $fh, "LoadFile ($buffer, $fh); 57 $self->{rich_text_ctrl_1}->SetValue ($buffer ); Where I've just created output.ht

RE: wxRichTextCtrl

2010-01-07 Thread Steve Cookson
Well, it looks as though I should have used SetValue instead of SetBuffer, but the crash is on the line before. $html_handler->LoadFile($buffer, $fh ); But maybe the error is in the XML instead of the wxPerl syntax? The XML is created by just saving the buffer in the sample application,

RE: wxRichTextCtrl

2010-01-06 Thread Steve Cookson
-Original Message- From: Jiri Pavlovsky [mailto:j...@getnet.cz] Sent: 03 January 2010 20:07 To: wxperl-users@perl.org Subject: Re: wxRichTextCtrl 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: &g

Re: wxRichTextCtrl

2010-01-03 Thread Jiri Pavlovsky
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

RE: wxRichTextCtrl

2010-01-03 Thread Steve Cookson
>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.

Re: wxRichTextCtrl

2010-01-03 Thread Jiri Pavlovsky
On 3.1.2010 20:32, Steve Cookson wrote: Hi Guys, Wow, it's already 2010 (for those of you who use the Gregorian calendar). I hope you all had a great Christmas break and that this year turns out well for you. I'm trying to implement some WP functionality in wx. Really all I need to do is to edi