MenuItem.SetBold
----------------

Sets menu item to use bold font style.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Menu](component_Menu.md) | [5.1](newinversion51.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "MenuItem.SetBold"; Item; Flag ) 

**MBS**( **"MenuItem.SetBold";** /\* Sets menu item to use bold font style. \*/  
**$Item**; /\* The reference to the menu item. Please create one with [MenuItem.CreateMenuItem](MenuItemCreateMenuItem.md) or [MenuItem.CreateSeparator](MenuItemCreateSeparator.md). \*/   
**$Flag**) /\* The bold state. Pass 1 to use bold font or 0 to disable.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Item | The reference to the menu item. Please create one with [MenuItem.CreateMenuItem](MenuItemCreateMenuItem.md) or [MenuItem.CreateSeparator](MenuItemCreateSeparator.md). | $item |
| Flag | The bold state. Pass 1 to use bold font or 0 to disable. | 1 |

### Result

Returns OK or error.

### Description

Sets menu item to use bold font style.  
### Examples

Create bold menu item:

 # create menu   
Set Variable \[ $menu ; Value: MBS ("[Menu.CreateMenu](MenuCreateMenu.md)") \]   
\# create menu item...   
Set Variable \[ $item ; Value: MBS ("[MenuItem.CreateMenuItem](MenuItemCreateMenuItem.md)"; "Bold item") \]   
Set Variable \[ $r ; Value: MBS ("MenuItem.SetBold"; $item ; 1) \]   
Set Variable \[ $r ; Value: MBS ("[Menu.AddItem](MenuAddItem.md)"; $menu ; $item ) \]  
### See also

- [Menu.AddItem](MenuAddItem.md)
- [Menu.CreateMenu](MenuCreateMenu.md)
- [MenuItem.CreateMenuItem](MenuItemCreateMenuItem.md)
- [MenuItem.CreateSeparator](MenuItemCreateSeparator.md)
- [MenuItem.GetBold](MenuItemGetBold.md)
- [MenuItem.SetTag](MenuItemSetTag.md)
- [MenuItem.SetTitle](MenuItemSetTitle.md)
- [MenuItem.SetURL](MenuItemSetURL.md)

### Example Databases

- [Menu/Popup Menu](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Menu/Popup%20Menu.shtml#2ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 5.1pr8](https://www.mbsplugins.de/archive/2015-05-13/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)
- [More menu commands for FileMaker](https://www.mbsplugins.de/archive/2015-05-11/More_menu_commands_for_FileMak/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 2/2021, Seite 28](https://filemaker-magazin.de/neuigkeit/4132-Appetithappen-FMM_202102)

This function is free to use.

Created 11st May 2015 , last changed 25th November 2019

  
[MenuItem.SetBackColor](MenuItemSetBackColor.md) - [MenuItem.SetEnabled](MenuItemSetEnabled.md)

[HTML Version](MenuItemSetBold.shtml)