BUTTON.sticky

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The sticky attribute specifies or retrieves a value indicating whether the BUTTON is a toggle, that is, whether it is a two-state or single-state BUTTON.

        elementID.sticky

Possible Values

This attribute is a read/write Boolean.

Value Description
true BUTTON is sticky.
false Default. BUTTON is not sticky.

Remarks

If sticky is set to true, the BUTTON will change to the down state when clicked and will remain in that state until clicked again. When the BUTTON is in the down state, the down attribute will be true and the downImage will be displayed.

Requirements

Requirement Value
Version
Windows Media Player version 7.0 or later

See also

BUTTON Element

BUTTON.down

BUTTON.downImage