Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^3: Landscape printing in wxPerl

by Anonymous Monk
on Jun 27, 2013 at 08:01 UTC ( #1040948=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Landscape printing in wxPerl
in thread Landscape printing in wxPerl

#!/usr/bin/perl -l -- use Wx qw/ :allclasses /; print Wx::wxPORTRAIT(); print Wx::wxLANDSCAPE(); my $pd = Wx::PrintData->new; print $pd->GetOrientation; $pd->SetOrientation( Wx::wxPORTRAIT() ); print $pd->GetOrientation; $pd->SetOrientation( Wx::wxLANDSCAPE() ); print $pd->GetOrientation; $pd->SetOrientation( 666 ); print $pd->GetOrientation; __END__ 1 2 1 1 2 666

SetOrientation doesn't do much validation, if you feed it junk, I imagine the users/consumers of wxPrintData assumes the default (wxPORTRAIT)

Comment on Re^3: Landscape printing in wxPerl
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040948]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2016-02-09 21:10 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (326 votes), past polls