Re: RichText Printing Headers and Footers.

2010-05-06 Thread Mark Dootson
Hi, Wx::RichTextPrintout is not yet wrapped because you cannot use it from Wx::RichTextPrinting. You would have to write your own equivalent of Wx::RichTextPrinting in Perl if you wanted to access Wx::RichTextPrintout directly. If it were wrapped, you would need code something like: my

RE: RichText Printing Headers and Footers.

2010-05-06 Thread Steve Cookson
Hi Mark, Thanks for this. Well, maybe I'll rewrite it in Perl. If I do, I'll let you know. Regards Steve PS Thanks for the OO tip.

RichText Printing Headers and Footers.

2010-05-05 Thread Steve Cookson
Hi, I'd like to include images in my RichText Printing Headers and Footers. I assume that I can over-ride the OnPrintPage function, so I've done this: Wx::RichTextPrintout::OnPrintPage{ my ($self, $page) = @_; my $dc = self-GetDC(); if ($dc){ if (HasPage($page)) $dc

RE: RichText Printing Headers and Footers.

2010-05-05 Thread Steve Cookson
OK, so I think I didn't get that quite right. I've added a separate package name and a 'use base', but it says the base is not found. So now the code is: package Wx::RichTextPrintout; use Wx qw(:everything); use base qw(Wx); sub OnPrintPage{ my ($self, $page) = @_;