in reply to Tk - Determine MAX Resolution

http://www.perltk.org/ptknews/recall_me.cgi?Search=resolution => http://www.perltk.org/ptknews/7676.htm
use Tk; my $main = new MainWindow; print $main->screenwidth, ' ', $main->screenheight, "\n"; print join ' ', $main->maxsize, "\n";

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re^2: Tk - Determine MAX Resolution
by Crackers2 (Parson) on Aug 16, 2004 at 00:08 UTC
    Doesn't that give the _current_ resolution, not the max one?
      I realize know that you want to query the capabilities of your display drivers, tk can't help you there (you can't change resolution with Tk). You'll have to resort to platform specific calls (Win32::API on windows, etc...) or maybe OpenGL, SDL... sorry

      MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
      I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
      ** The third rule of perl club is a statement of fact: pod is sexy.