Share via


icon Attribute

Provides a Uniform Resource Locator (URL) to a bitmap (.bmp) or graphics interchange format (.gif) file, which is used for the button or menu item.

Type

  xsd:string

Remarks

The icon attribute is an optional attribute of the button element.

If an icon is not specified, the caption alone will be used. If both caption and icon are specified, both will be displayed. Alternatively, the value can also be an ID, allowing access to internal system icons. If the value is an integer, it will be interpreted as an ID.

Example

The following is an example of the icon attribute as it is used in the button element:

  <xsf:menuArea name="msoInsertMenu">
   <xsf:menu caption="&amp;Section">
      <xsf:button action="xCollection::insert" xmlToEdit="CD_10"
         caption="CD" icon="cd.bmp" showIf="always"></xsf:button>
      <xsf:button action="xCollection::insert" xmlToEdit="Track_14" 
         caption="Track" icon="track.bmp" showIf="always"></xsf:button>
      <xsf:button action="xOptional::insert" xmlToEdit="Label_16" 
         caption="Label" icon="label.bmp"></xsf:button>
   </xsf:menu>
</xsf:menuArea>