ListDialog.SetWidth
-------------------

Sets the width of the dialog.

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

MBS( "ListDialog.SetWidth"; Width ) 

**MBS**( **"ListDialog.SetWidth";** /\* Sets the width of the dialog. \*/  
**$Width**) /\* The new width value.e.g. 800 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Width | The new width value. | 800 |

### Result

Returns OK.

### Description

Sets the width of the dialog.  
See also [ListDialog.SetHeight](ListDialogSetHeight.md), [ListDialog.GetWidth](ListDialogGetWidth.md) and [ListDialog.GetHeight](ListDialogGetHeight.md).  
Minimum width in 4.3/4.4 is 300 pixel which was lowed to 260 in plugin version 4.5.  
### Examples

Set size to 800x600:

 MBS ( "ListDialog.SetWidth"; 800 )  
MBS ( "[ListDialog.SetHeight](ListDialogSetHeight.md)"; 600 )  
### See also

- [ListDialog.GetFilter](ListDialogGetFilter.md)
- [ListDialog.GetHeight](ListDialogGetHeight.md)
- [ListDialog.GetWidth](ListDialogGetWidth.md)
- [ListDialog.SetFilter](ListDialogSetFilter.md)
- [ListDialog.SetHeight](ListDialogSetHeight.md)

### Example Databases

- [SmartCard/Belgian EID Reader](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/SmartCard/Belgian%20EID%20Reader.shtml#6ScriptAnchor_)

This function is free to use.

Created 18th August 2014 , last changed 27th January 2021

  
[ListDialog.SetUsesAlternatingRowBackgroundColors](ListDialogSetUsesAlternatingRowBackgroundColors.md) - [ListDialog.SetWindowTitle](ListDialogSetWindowTitle.md)

[HTML Version](ListDialogSetWidth.shtml)