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

Dialog.SetIcon

Sets the icon to be displayed in the alert to a given icon.

Component Version macOS Windows Linux Server iOS SDK
Dialog 4.1 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "Dialog.SetIcon"; Image )   More

Parameters

Parameter Description Example
Image The container with image to use as dialog icon.
Should be a PNG with transparency.

Pass "" to clear icon.

Result

Returns OK or error.

Description

Sets the icon to be displayed in the alert to a given icon.
By default, the image is the application icon, accessed through the application bundle's NSApplicationIcon property.
So for FileMaker Pro, the icon is the FileMaker icon.

See also

Example Databases

Blog Entries

This function is free to use.

Created 18th August 2014, last changed 1st July 2021


Dialog.SetFieldText - Dialog.SetInformativeText