Updated WxPerl Wiki for WxRichTextCtrl

2010-01-16 Thread Steve Cookson
Hi all, WxRichTextCtrl is quite a complex control with a lot of different methods and properties. It took me quite a while to get any familiarity with it at all. I've put some of my test code on the wiki at: http://wxperl.pvoice.org/w/index.php/WxRichTextCtrl It's not comple

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

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

WxRichTextCtrl buttons

2010-01-07 Thread Steve Cookson
Hi All, 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? Have a good day. Regards Steve <>

RE: wxRichTextCtrl

2010-01-07 Thread Steve Cookson
ion, here it is (sorry for the length): Regards Steve http://www.wxwidgets.org";> Welcome to wxRichTextCtrl, a wxWidgets control for editing and presenting styled text and images by Julian Smart

RE: wxRichTextCtrl

2010-01-06 Thread Steve Cookson
Hi All, I have wx application that relies on a set of templates to generate letters. I am providing a basic letter editor using wxRichTextCtrl and therefore I'd like to load the letters before editing. This is the code I'm using, but I get a perl crash with no error message when I r

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
o do is to edit a letter. I've looked at the wxPerl demo example and it shows you how to maintain wxRichTextCtrl, but not the format of the data. I'd like to have a number of letter templates (the doc says it's custom XML), but I can't find the format, nor how to load or save docu

wxRichTextCtrl

2010-01-03 Thread Steve Cookson
d at the wxPerl demo example and it shows you how to maintain wxRichTextCtrl, but not the format of the data. I'd like to have a number of letter templates (the doc says it's custom XML), but I can't find the format, nor how to load or save documents. So I'd load the letter usi