ProgressDialog.SetTitleIcon
---------------------------

Sets the icon of a window in Windows.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ProgressDialog](component_ProgressDialog.md) | [10.2](newinversion102.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "ProgressDialog.SetTitleIcon"; ImageRef { ; bigIcon } ) 

**MBS**( **"ProgressDialog.SetTitleIcon";** /\* Sets the icon of a window in Windows. \*/  
**$ImageRef**; /\* The image reference for the picture image, a number returned from the [GMImage.New](GMImageNew.md) functionse.g. 1 \*/   
**$bigIcon**) /\* Optional; Pass 1 to set big icon (for app switcher) or 0 for small icon (icon in title bar). Default is 0.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| ImageRef | The image reference for the picture image, a number returned from the [GMImage.New](GMImageNew.md) functions | 1 |  |
| bigIcon | Pass 1 to set big icon (for app switcher) or 0 for small icon (icon in title bar). Default is 0. | 1 | Optional |

### Result

Returns OK or error.

### Description

Sets the icon of a window in Windows.  
You may need to use [GMImage.NewImagesFromContainer](GMImageNewImagesFromContainer.md) to read image from container first.  
### Examples

Set progress dialog icon:

 # load image   
Set Variable \[ $image ; Value: MBS ( "[GMImage.NewImagesFromContainer](GMImageNewImagesFromContainer.md)"; ProgressDialog::Icon ) \]   
\# set icon   
Set Variable \[ $r ; Value: MBS ("ProgressDialog.SetTitleIcon"; $image ) \]   
  
\# later free it   
Set Variable \[ $r ; Value: MBS ( "[GMImage.Release](GMImageRelease.md)"; $image ) \]  
### See also

- [Dialog.SetTitleIcon](DialogSetTitleIcon.md)
- [GMImage.New](GMImageNew.md)
- [GMImage.NewImagesFromContainer](GMImageNewImagesFromContainer.md)
- [GMImage.Release](GMImageRelease.md)
- [ProgressDialog.GetTitle](ProgressDialogGetTitle.md)
- [ProgressDialog.SetPosition](ProgressDialogSetPosition.md)
- [ProgressDialog.SetShowButton](ProgressDialogSetShowButton.md)
- [ProgressDialog.SetTitle](ProgressDialogSetTitle.md)
- [ProgressDialog.SetTopText](ProgressDialogSetTopText.md)

### Release notes

- **Version 10.2**
    - Added [ProgressDialog.SetTitleIcon](https://www.mbsplugins.eu/ProgressDialogSetTitleIcon.shtml) function.

### Blog Entries

- [News about the MBS FileMaker Plugin 10.2](https://www.mbsplugins.de/archive/2020-05-19/News_about_the_MBS_FileMaker_P/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.2pr8](https://www.mbsplugins.de/archive/2020-05-09/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 7th May 2020 , last changed 7th May 2020

  
[ProgressDialog.SetTitle](ProgressDialogSetTitle.md) - [ProgressDialog.SetTopMost](ProgressDialogSetTopMost.md)

[HTML Version](ProgressDialogSetTitleIcon.shtml)