I'm currently writing a script using Perl/Tk for windows NT. I would like to know how we can maximize the main window like if the user is pressing the second button in the upper-right corner of the window. The only way I have found yet is to ask the desktop his resolution and then call geometry with this resolution :
$::mainWindow->geometry( $::mainWindow->screenwidth() . "x" . $::mainWindow->screenheight() . "+0+0");