All functions   Mac OS X   Windows   Crossplatform   Components   New in version: 1.0   1.1   1.2   1.3   1.4   1.5   1.6   1.7   1.8   2.0  

Window.SetCloseButton

Component: Window
Mac OS X: Works
Windows: Works

MBS( "Window.SetCloseButton" ; WindowRef; On or Off )

Parameters

Parameter Description Example value
WindowRef Window Reference is the Unique OS level window ID. You can obtain this by using the Window.FindByTitle or the Window.FindByindex Function 0
On or Off 1

Description

Switches the close button on the window on or off.
Please note! On Windows that SetCloseButton removes all buttons from the title bar and not just the close button.

Examples

Disable the Window Close button

MBS( "Window.SetCloseButton" ; 0; 0)

Enable the Window Close button

MBS( "Window.SetCloseButton" ; 0; 1)

Feedback: Report problem or ask question.