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,
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}
>> 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
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,
-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
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
>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.
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