Returns or sets a value indicating whether a Control-menu box is displayed on a form.
object.ControlBox [ = True | False ]
To display a Control-menu box, you must also set the form's BorderStyle property to 1 (basFixed), or 2 (basThick).
When ControlBox = 0 the MinButton, MaxButton, and HelpButton are removed as well. These properties depend on each other. When Caption = "" as well, no title bar is drawn.
OpenW 1
Print "Press any key to remove ControlBox"
Local a% : KeyGet a%
Win_1.ControlBox = False
Cls
Print "Press any key to close"
KeyGet a%
CloseW 1
Although ControlBox = False disables the system menu, a Form can still be moved when it has caption by clicking and holding the mouse button in the title bar. Also, by double clicking the title bar the form is maximized or minimized, respectively.
Form, MinButton, MaxButton, HelpButton, BorderStyle
{Created by Sjouke Hamstra; Last updated: 26/09/2014 by James Gaite}