From: PerlGuy <pe...@ea...> - 2003-09-02 02:16:12
|
Mattia Barbon wrote: > On Mon, 01 Sep 2003 11:59:47 -0700 Doug and Julie Miles <djm...@ea...> wrote: > > Hello, > > >>I'm trying to figure out how to print in wxPerl, and demo.pl appears to >>be broken. > > Not exactly: the 5.8 wxPerl binaries are broken :-( I'll re-upload them > ASAP. OK. Thanks. > >>RedHat 9 >>Perl 5.8.0 >>wxPerl 0.16 (compiled) >> >>The demo runs, but when I hit the print button, I get this: >> >>Can't locate object method "GetSizeWH" via package "Wx::PostScriptDC" at >>/download/perl/.cpan/build/Wx-0.16/demo/Printing.pm line 177. > > Could you try adding: > @Wx::PostScriptDC::ISA = qw(Wx::DC); somewhere (in the demo is fine as a > test, the real fix is to put it in Print.pm and reinstall). I haven't > wxPerl build for linux ATM, but this should fix it. That works. Thanks Mattia! One thing I noticed was that the 4 circles in the demo print out solid black instead of just an outline. Another thing I'm trying to understard is which classes are printable. I noticed that PrintingDemoCanvas (in Printing.pm) ISA Wx::ScrolledWindow. Could it be something else? Also, are childeren windows printed, or just "drawn" items? For instance, would text/images in a sizer on a panel print? I apologize if these are answered in the documentation. I've read the printing overview, and several of the "see also" pages, but I'm not seeing/understanding it. Thanks! -- Doug Miles |