I am trying to capture window minimize event in tcl/tk. is there a way to capture window minimize event in tcl/tk?
Also Configure event is not raised If i click on taskbar icon to minimize/restore the window.
Following is the example code. Click on taskbar button to minimize and restore. Configure/Map/Unmap events are not fired at all.
proc confEvent {} {
puts [wm state .t]
}
proc mapEvent {} {
puts Map
}
proc unmapEvent {} {
puts Unmap
}
wm withdraw .
toplevel .t -width 400 -height 400
bind .t <Configure> {confEvent}
bind .t <Map> {mapEvent}
bind .t <Unmap> {unmapEvent}
6