Add to system menu on XP clobbers "Close" - makes window not closeable
- From: "Roy Terry" <royterry@xxxxxxxxxxxxx>
- Date: Thu, 15 Sep 2005 17:14:18 GMT
set tl .avDemo
toplevel $tl ....
set m0 [menu $tl.m]
$tl config -menu $m0
set msys [menu $m0.system -tearoff 0]
$msys add separator
$msys add command -label "Load settings.tcl" -command "source
settings.tcl"
$m0 add cascade -label System -menu $msys
I put this code into an app
and low and behold, the "Close"
menu choice is gone. Gone from the
system menu via upper left icon, gone
via righ-click on caption bar, gone via
right-click on task button and also the
'X' button on window upper right is
disabled. It's a neat way to make the
app unclosable w/o using task manager.
Seems this is behavior that crops up with
XP.
Anyone know how to add to the system
menu w/o deleting the last "native" item
(being Close)
Thanks,
Roy
.
- Prev by Date: Re: small problem
- Next by Date: Setting the interpreters result
- Previous by thread: strange behaviour of "expect"
- Next by thread: Setting the interpreters result
- Index(es):
Relevant Pages
|