Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

System Menu of toplevel window - Windows XP, 7, ...

32 views
Skip to first unread message

JMar...@comcast.net

unread,
May 18, 2013, 12:55:00 PM5/18/13
to
Is it possible to disable options on the system menu of a toplevel window in Windows? Is so, how?

Thanks in advance!

Robert Heller

unread,
May 18, 2013, 1:56:12 PM5/18/13
to
At Sat, 18 May 2013 09:55:00 -0700 (PDT) JMar...@comcast.net wrote:

>

> Is it possible to disable options on the system menu of a toplevel window in
> Windows? Is so, how?

Do you want to display *specfic* options or all options?

Certain options are (effectively) disabled by certain wm commands applied to
the toplevel:

wm protocol .sometoplevel WM_DELETE_WINDOW {}

disables the 'delete window' function

wm resizable .sometoplevel no no

disables the 'maximize' function

wm transient .sometoplevel .someothertoplevel

disables the 'iconify / minimize' function

It is also possible to *add* additional items to the System menu: see the
documentation for menu (look at the section labeled 'MENUBARS').

>
> Thanks in advance!
>

--
Robert Heller -- 978-544-6933 / hel...@deepsoft.com
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments



JMar...@comcast.net

unread,
May 19, 2013, 12:00:49 AM5/19/13
to
Thanks, that was just what I needed to know!
0 new messages