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:


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 …


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