METAFILE

Syntax

ctl[n]: METAFILE(Class Specific Properties), Other Properties

Description

The class METAFILE allows one to place a metafile in the dialog window. By default, this user control is not actionable.

Class Specific Properties

CENTERIMAGE
Scales the image to original size and centers it within the control.
NOTIFY
Makes the user control actionable and activates tooltip.

Other Properties

Val
Assigns a value to the image, but only when it is disabled. (default = 0)

Example

ctl[0]: METAFILE, Image="Airplane.wmf"
ctl[1]: METAFILE(MODALFRAME, NOTIFY), Image="D:\\Graphics\\Button2.emf", Action=CANCEL

Notes

Once the metafile is actionable, its value definitions are lost. The reason is that a user control returns a specific value and overwrites (once the mouse button is clicked over the user control) the user control's value.
Currently the windows metafile (.WMF) and enhanced metafile (.EMF) formats are supported.
When standalone filters are created, metafiles are not embedded by default. You can use the Embed: function to embed the icon into the standalone filter file.
The image file should be present in the active directory or in any of the directories set in the PATH or FM_PATH variables (check your AUTOEXEC.BAT file).

Also see

BITMAP, ICON, IMAGE