Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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

Replies are listed 'Best First'.
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?
[prathap keerthipati]: how to update perl in unix
[hippo]: yum update perl
[hippo]: Other package managers are available
LanX wouldn't update system Perl!
[Discipulus]: prathap keerthipati might be it is better to install an alternative Perl instead and do not touch the system one
[LanX]: see perlbrew for alternative Perl installations
[marto]: unless you know exactly what you're doing an often saner option is to simply build another Perl rather than replace the system one

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (16)
As of 2017-03-23 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.