Subject: Re: How to deactivate Alt+F4(close) ??? - DN [1]
fellowsd@cs.man.ac.uk (Donal K. Fellows) - 12 Oct 1999 - comp.lang.tcl
In article <7tv8u9$kfm$1@nnrp1.deja.com>, <nixien@my-deja.com> wrote:
> Is there any ways to deactivate [Alt-F4] ?
Easy.
wm protocol . WM_DELETE_WINDOW {
if {[tk_messageBox \
-icon question \
-type yesno \
-default no \
-message "Do you want to go?" \
-title "Quit Application?"] == "yes"} {
exit
}
}
Donal.
--
Donal K. Fellows http://www.cs.man.ac.uk/~fellowsd/ fellowsd@cs.man.ac.uk
-- The small advantage of not having California being part of my country would
be overweighed by having California as a heavily-armed rabid weasel on our
borders. -- David Parsons <o r c @ p e l l . p o r t l a n d . o r . u s>
Last modified
1999-10-19
1999-10-19
(195.108.246.51)
Note: you are looking at
the snapshot of an old wiki
- much of this information
is likely to be very outdated
