Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: tk minimize event

by blueberryCoffee (Scribe)
on Mar 21, 2005 at 08:33 UTC ( #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? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2023-01-29 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?