in reply to Re^4: wxPerl monitor size in pixels
in thread wxPerl monitor size in pixels
s/first/primary/;
Try this for all screens
{ use Wx; my $count = Wx::Display::GetCount(); my $dc = 0; while( $dc < $count ){ my $disp = Wx::Display->new( $dc ); my $rect = $disp->GetGeometry; print "$dc $disp ", join 'x', map { $rect->$_ } qw[ GetWidth G +etHeight ]; print "\n"; print "$dc $disp ", $disp->GetName, "\n"; print "$dc $disp ", ' IsPrimary ', $disp->IsPrimary, "\n"; print "\n"; $dc++; } } __END__
|
|---|