Windows Media Player SDK banner art
PreviousNext

BUTTONELEMENT Element

The BUTTONELEMENT element defines a single button within a BUTTONGROUP. It supports the following attributes and predefined button elements.

This element supports the following attributes.

Attribute Description
cursor Specifies or retrieves the value of the BUTTONELEMENT cursor that appears when the mouse is over the BUTTONELEMENT.
down Specifies or retrieves the up or down value of the BUTTONELEMENT.
downToolTip Specifies or retrieves the ToolTip text that appears when the mouse is over the BUTTONELEMENT and the BUTTONELEMENT is in the down state.
mappingColor Specifies or retrieves the color key that identifies this BUTTONELEMENT in the BUTTONELEMENT group.
sticky Specifies or retrieves a value indicating whether the BUTTONELEMENT is sticky. When sticky, a BUTTONELEMENT will change states after being clicked and will remain in the new state until clicked again.
upToolTip Specifies or retrieves the ToolTip text that appears when the mouse is over the BUTTONELEMENT and the BUTTONELEMENT is in the up or active state.

This element also supports the ambient events and the following ambient attributes: enabled, and tabStop.

The following predefined BUTTONELEMENT elements are available.

Predefined BUTTONELEMENT Description
FFWDELEMENT A BUTTONELEMENT with a built in onclick event handler that calls player.controls.fastForward.
NEXTELEMENT A BUTTONELEMENT with a built in onclick event handler that calls player.controls.next.
PAUSEELEMENT A BUTTONELEMENT with a built in onclick event handler that calls player.controls.pause.
PLAYELEMENT A BUTTONELEMENT with a built in onclick event handler that calls player.controls.play.
PREVELEMENT A BUTTONELEMENT with a built in onclick event handler that calls player.controls.previous.
REWELEMENT A BUTTONELEMENT with a built in onclick event handler that calls player.controls.rewind.
STOPELEMENT A BUTTONELEMENT with a built in onclick event handler that calls player.controls.stop.

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.