Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: tk minimize event

by blueberryCoffee (Scribe)
on Mar 21, 2005 at 08:33 UTC ( [id://441145]=note: print w/replies, xml ) Need Help??


in reply to Re: tk minimize event
in thread tk minimize event

Thanks, found it on perltk.org

For anyone else who wishes to know. The tags to bind are 'Configure', 'Map', and 'Unmap'.

The Configure event is fired any time you move or resize the window (this includes maximizing). The Map event happens when you un-minimize a window, and Unmap happens when you minimize the window.

An example:
use Tk; my $app = new MainWindow; $app->bind('<Configure>', sub{ print "configure"; }); $app->bind('<Unmap>', sub{ print "Unmap"; }); $app->bind('<Map>', sub{ print "Map"; }); MainLoop;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-18 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found