Disable System Menu @ Run-Time

At run-time (based upon certain conditions), I need to disable and hide the System Menu (Minimize, Maximize, and Close) buttons on both an application frame and a window. Names: AppFrame and BrowseWindow. The following does not work:

AppFrame{PROP:System}=false
BrowseWindow{PROP:System}=false

What am I doing wrong? Is there a particular event in which these commands should be executed?

Any help is greatly appreciated!

Setting of the PROP:System property works in a simple test programs (Windows 8.1).
test.clw (1.8 KB)

Have a look at Carl’s efforts here …

https://gist.github.com/CarlTBarnes/86b64b19d5309a1ca00d1fce2bb225a3

Whilst ‘hide’ the minimise button worked on my Windows7, it no longer ‘hides’ on my Windows10, it just disables it (I can live with that)

It does work, just don’t call it before OPEN(Window).

1 Like