Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: TK - Best MainWindow management tips

by crabbdean (Pilgrim)
on Mar 26, 2004 at 09:58 UTC ( #339974=note: print w/ replies, xml ) Need Help??


in reply to TK - Best MainWindow management tips

Well this beautiful piece of code answers questions 1,2 and 3 --> Re: Maximise or minimise Perl/Tk Main Window I doubt you'll get better than that!

Update: You'll actually see running this a small problem (on Win32 systems), the window maximises to even go underneath your application tray at the bottom of the screen so that the bottom of your MainWindow is hidden. I'll work on a solution and post it. Anyone?
Answer:Okay answer is here I posted it further down this thread, SORRY! I should have put it here.

I'm most curious about point 4. I'll have to research that some more and write back.

Actually I'd be interested also in how to centre a MainWindow on your screen. Anyone?

Update: Okay here is a nice solution to centering your window --> Center a Tk window on the screen The second solution given on this page works best

This is also a good article on Windows Window Management Win32 Window Hierarchy and Styles


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


Comment on Re: TK - Best MainWindow management tips
Re: Re: TK - Best MainWindow management tips
by eserte (Deacon) on Mar 26, 2004 at 11:14 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.
Re: Re: TK - Best MainWindow management tips
by herveus (Parson) on Mar 26, 2004 at 17:32 UTC
    Howdy!

    perhaps worse yet, for my, it may well cram the title bar against the top of the screen, under my task bar (which is where god intended it to be).

    That misconduct, seen in Microsloth Excel, on my Win2K box, makes it real interesting to get to the minimize and close buttons...

    yours,
    Michael

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://339974]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2014-12-29 15:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (192 votes), past polls