ListDialog.SetShowCloseBox
--------------------------

Sets whether the close box widget is enabled.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ListDialog](component_ListDialog.md) | [14.2](newinversion142.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "ListDialog.SetShowCloseBox"; Flag ) 

**MBS**( **"ListDialog.SetShowCloseBox";** /\* Sets whether the close box widget is enabled. \*/  
**$Flag**) /\* Pass 1 to enable or 0 to disable. \*/ 

### 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

- [ListDialog.GetShowCloseBox](ListDialogGetShowCloseBox.md)
- [ListDialog.SetShowCheckboxes](ListDialogSetShowCheckboxes.md)

### Release notes

- **Version 14.2**
    - Added [ListDialog.GetShowCloseBox](https://www.mbsplugins.eu/ListDialogGetShowCloseBox.shtml) and [ListDialog.SetShowCloseBox](https://www.mbsplugins.eu/ListDialogSetShowCloseBox.shtml) functions.

### Blog Entries

- [News in MBS FileMaker Plugin 14.2](https://www.mbsplugins.de/archive/2024-05-21/News_in_MBS_FileMaker_Plugin_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.2pr1](https://www.mbsplugins.de/archive/2024-04-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

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

  
[ListDialog.SetShowCheckboxes](ListDialogSetShowCheckboxes.md) - [ListDialog.SetShowsFilter](ListDialogSetShowsFilter.md)

[HTML Version](ListDialogSetShowCloseBox.shtml)