Windows Media Player SDK banner art
PreviousNext

BUTTONELEMENT.mappingColor

The mappingColor attribute specifies or retrieves the color key that identifies this BUTTONELEMENT in the BUTTONGROUP.

Syntax

elementID.mappingColor

Possible Values

This attribute is a read/write String containing any Microsoft Internet Explorer color value. It has no default value.

Example

The following sample is a complete skin definition file that illustrates how some of the BUTTONELEMENT attributes are used. It can be found in the Samples directory that was installed with the SDK.

<THEME>
  <VIEW
    backgroundImage = "background.bmp"
    titleBar = "False"
  >
    <PLAYER
      URL = "file:..\\media\\mellow.wma"
    />
    <EFFECTS
      id = "myeffects"
      top = "25"
      left = "88"
      width = "180"
      height = "150"
      clippingImage = "clip.png"
    />
    <BUTTONGROUP
      mappingImage = "map.bmp"
      hoverImage = "hover.bmp"
    >
      <BUTTONELEMENT
        mappingColor = "#00FF00"
        upToolTip = "Next"
        onClick = "JScript:myeffects.next();"
      />
      <BUTTONELEMENT
        mappingColor = "#FF0000"
        upToolTip = "Previous"
        onClick = "JScript:myeffects.previous();"
      />
    </BUTTONGROUP>
  </VIEW>
</THEME>

Remarks

This attribute specifies the color of the region in the button group mappingImage that corresponds to this button element. All clicks on this region are handled by this button element.

If an invalid color is specified, the BUTTONELEMENT is not activated.

See Also

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.