Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

ListDialog.SetShowCloseBox

Sets whether the close box widget is enabled.

Component Version macOS Windows Linux Server iOS SDK
ListDialog 14.2 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "ListDialog.SetShowCloseBox"; Flag )   More

Parameters

Parameter Description Example
Flag Pass 1 to enable or 0 to disable.

Result

Returns OK or error.

Description

Sets whether the close box widget is enabled.
Default is 1 to enable or 0 to disable.

Warning: If you disable cancel button and close box, there may be no way to cancel the dialog.

Examples

Enable close box:

Set Variable [ $r; Value: MBS( "ListDialog.SetShowCloseBox"; 1 ) ]

Disable close box:

Set Variable [ $r; Value: MBS( "ListDialog.SetShowCloseBox"; 0 ) ]

See also

Release notes

Blog Entries

This function is free to use.

Created 25th March 2024, last changed 11st May 2024


ListDialog.SetShowCheckboxes - ListDialog.SetShowsFilter