Image Controls
Description
To place an image on dialog, use the {Image} command. The syntax for the command is:
{Image=imagename}
Imagename can be a built-in Alpha Anywhere bitmap, or a bitmap that you have added to the current database (on the Code tab of the Control Panel). In this example, we display the Windows error icon in a text box.
ui_dlg_box("Error",<<%dlg% {lf}; {image=$sys_error} An error has occurred! ; {lf}; <*15&OK> %dlg%)
This script produces this dialog:
To see a list of all built-in Alpha Anywhere bitmaps, use the A5.BITMAP_ENUM(flag) method. Flag = "" returns the bitmaps defined in the current database, flag = 512 returns the bitmaps used by Alpha Anywhere's toolbars and menus, flag = 1024 returns the system bitmaps. Alternatively, use the Code > Insert Image Name command in the Code Editor.
Limitations
Desktop applications only.
See Also