Add to system menu on XP clobbers "Close" - makes window not closeable



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


.



Relevant Pages

  • Re: Modern printer for use with Clipper S87
    ... I support an old Summer 87 app that prints a report to a form provided ... PARAMETERS MARGIN ... CASE UPPER $ "LIGHT" ... CASE UPPER (typeface) $ "LINEPRINTER" ...
    (comp.lang.clipper)
  • Re: Problem shutting down non-responding apps in XP SP1
    ... >because when this happens, I usually can't shut down the frozen app using ... Even Task Manager ... They're all free - and most pretty small, so they download quickly enough. ... Install and run Spybot. ...
    (microsoft.public.windowsxp.help_and_support)
  • Closed thread- Anyone seen this before?
    ... So it was technically on the desktop, which is why it showed up as an app ... I make it go away by closing the window - I get a little window that just ... 'Address' a text entry box and a little IE style 'Go' icon. ... Killing it in Task Manager kills explorer, which at least on my machine then ...
    (Incidents)
  • Re: VB making more threads than coded
    ... Background thread 1 ... started app I get 11 threads in task manager. ... I know I am making 1 thread per a CreateObject call because if I disable ...
    (microsoft.public.vb.winapi)
  • Re: Cant kill processes in XP Home
    ... different seeming problems is the task manager response, ... after the telnet app dissapears ... How about safe mode without networking, ...
    (microsoft.public.windowsxp.help_and_support)