in reply to wxPerl monitor size in pixels

On the same note ... ;)

Perl Tk monitor size in pixels

Console version

perl -MTk -le '$w=tkinit; print join q[x],$w->screenwidth,$w->screenhe +ight'

Popup version, no console, ...

perl -MTk -le '$w=tkinit; $w->Dialog(-text => join q[x],$w->screenwidt +h,$w->screenheight)->Show;'

Same values (1920x1080) for wxPerl version as for Tk version on my box.

Replies are listed 'Best First'.
Re^2: wxPerl monitor size in pixels
by Anonymous Monk on May 29, 2011 at 22:36 UTC

    This also gives the same wrong result 1707x960, but my screen is 2560x1440 pixels!?

    (I am using: The Dell UltraSharpT U2711 27" Monitor with resolution of 2560 x 1440 (WQHD))

      I think we can conclude that is not a wxWidgets or Tk problem, it has to be on a higher level.

      On my box, GNU/Linux with X and KDE4, if I run the next command and click on the desktop the result is the same.

      xwininfo | grep geometry

      Gives:

      -geometry 1920x1080+0+0

      Update: ... lower level ... :)