in reply to Re: TK - Best MainWindow management tips
in thread TK - Best MainWindow management tips

See http://user.cs.tu-berlin.de/~eserte/src/perl/Win32Util/ for the "maximize" method. With this and the help of Win32::API the mainwindow will not obscure the taskbar.
  • Comment on Re: Re: TK - Best MainWindow management tips

Replies are listed 'Best First'.
Re: Re: Re: TK - Best MainWindow management tips
by crabbdean (Pilgrim) on Mar 26, 2004 at 12:11 UTC
    Thanks! Although, on "make test" I get this error.

    Makefile:644: *** missing separator. Stop.

    Not being familiar with this install process I'm at a loss here. Any pointers? ... or else I'll have to research how to solve this problem. I'll also look more into the Win32::API. Thanks


    Dean
    The Funkster of Mirth
    Programming these days takes more than a lone avenger with a compiler. - sam
    RFC1149: A Standard for the Transmission of IP Datagrams on Avian Carriers
      Maybe you need to use "nmake" or "dmake", depending on your perl version.
        Okay, using nmake worked.

        For anyone wanting to know, the documentation is then viewed by typing "perldoc win32util" at a command prompt.

        Also, I got the Win32Util function to doing a maximize and not going underneath the taskbar by doing:
        #!perl use strict; use Tk; use Win32Util; my $mw = new MainWindow; my ($xx, $yy, $w, $h) = Win32Util::client_window_region($mw); $mw->geometry($w.'x'.$h.'+0+0'); MainLoop;

        Dean
        The Funkster of Mirth
        Programming these days takes more than a lone avenger with a compiler. - sam
        RFC1149: A Standard for the Transmission of IP Datagrams on Avian Carriers