Button Definition

The second line (TAG2) defines a button. It uses the key word Button followed by a series of options contained in parentheses.

btnname

The string that names the button. The string must comprise alphanumeric characters with no punctuation other than a dash (-) or an underscore (_). This string is displayed as a tooltip when the cursor is placed over the button.

id_small

The string that names the ID string of the small-image resource (16 by 15 bitmap). The string must comprise alphanumeric characters with no punctuation other than a dash (-) or an underscore (_). This can also specify a user-defined bitmap.

id_big

The string that names the ID string of the large-image resource (24 by 22 bitmap). The string must comprise alphanumeric characters with no punctuation other than a dash (-) or an underscore (_). This can also specify a user-defined bitmap.

macro

The definition is followed by a command string that follows the standard menu item syntax for command strings.

User-Defined Bitmaps

User-defined bitmaps can be used in place of the id_small and id_large image resource names. A user-defined bitmap must be of the proper size (16 pixels wide by 15 pixels high for the id_small parameter and 24 pixels wide by 22 pixels high for the id_large parameter) and must reside in the Support path. Specify a user-defined bitmap with the file name and .bmp file extension as shown in the following example.

TAG34 [Button ("My Command", mycmd16.bmp, mycmd24.bmp)]^C^CMYCMD