Please enable JavaScript to view this site.

A-Shell Development History

AUI_MENU enhancement: Menu items may now display images, loaded either from BMP or ICO files, or from bitmap or icon resources inside a DLL. The image is specified by enclosing it in vertical bars i.e.:

mnutxt = "Option 1"               ! text only

mnutxt = "|fspec|Option 2"        ! image (from fspec file) + text

mnutxt = "|resname::lib|Option 3" ! image (resname within lib.dll) + text

You may also specify a desired size in pixels by appending "=##" to the end of the image spec, where ## is a number between 10 and 99. (The images are assumed to be square. If no size is specified, for standalone BMP files, the actual size of the bitmap will be used; for icons, the size will be set to 16x16 (which is the standard size of a menu icon). Best results will be obtained when the actual image size (or, in the case of icons, when one of the available images) matches the target size.

In the above examples, fspec may be an AMOS or Windows native style filespec of a BMP or ICO file. (ATE will also look in the two cache directories if not found in the specified location.)

resname is the resource name of the image within the specified library, which will be loaded from the same directory where the ashw32.exe was loaded.

Examples

mnutxt = "|images:fopen.bmp|Open File"

mnutxt = "|help.ico[7,57]=64|Help"

mnutxt = "|%MIAME%\images\exit.ico=32|Exit"

mnutxt = "|paste::ashico1v|Paste"

See the sample program ASMNU3.BP in [908,35] of EXLIB for examples.