Type: Binary
Availability: Read or write at any time
The picture property of the MenuItem class contains a graphic to be displayed in a menu.
The picture property settings are listed in the following table.
Setting | Description |
---|---|
(none) | No picture (the default). |
Any valid picture format (that is, .bmp, .cur, .ico, .jpg, .png, .wmf, .gif, and so on) | Specifies a graphic. You can load the graphic from the Picture list box in the Menu Item sheet of the JADE development environment Menu Design dialog. At run time, you can set this property, by using the |
When setting the picture property from JADE Painter, the graphic is saved and loaded with the form. When you load a graphic at run time, the graphic is not saved with the application. The graphic can be set by setting the picture property of the control to the picture property of another control, or by using the
For menus, the picture can be any valid picture format; for example, a bitmap, icon, cursor, or metafile. The picture is drawn at actual size, except for a metafile, which is scaled to fit the menu line size. Menus are drawn in four columns, as follows.
checkMark : picture : text : accelerator text
The width of each column is defined to be the maximum of all the displayed items in that popup menu.
Note that the following restrictions apply to the display of graphics in Windows Compact devices.
Graphics can be displayed only on top-level items that appear on the menu bar.
Graphics cannot be displayed on submenu items.
Graphics cannot be stretched to fit in the menu bar.
Transparent areas of icons in a menu bar are displayed as black. As a result, you should use 16x16 png or bitmap graphics for menu bar items rather than icons.
See also the