in reply to Sizing Tk Widgets WRT the Taskbar

I understand your question, but I must say that doing it this way (and thus not considering any panels or taskbars):
# Create the main window my $main = MainWindow->new(); # Maximize the window my ($screenw, $screenh) = ($main->screenwidth, $main->screenheight); $main->geometry($screenw."x".$screenh);
Works for me on both KDE, Gnome and Win98. It just maximizes the main window and does not go behind panels or taskbars.

hth

Jouke Visser, Perl 'Adept'

Replies are listed 'Best First'.
Re: Re: Sizing Tk Widgets WRT the Taskbar
by nokesja (Initiate) on May 14, 2001 at 10:02 UTC
    Hmmm,
    Interesting... I'm doing the same thing and it doesn't work for me! Here's my code below:
    my $mw = MainWindow -> new (); $screen_h = $mw -> screenheight (); $screen_w = $mw -> screenwidth (); $mw -> geometry ($screen_w . "x" . $screen_h);
    Any suggestions?
    - Jeff