Partager via


BUTTONGROUP.cursor

[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 cursor attribute specifies or retrieves the type of cursor that appears when the mouse is over a button in the BUTTONGROUP.

        elementID.cursor

Possible Values

This attribute is a read/write String containing one of the following values.

Value Description
system Default. Platform-dependent cursor (usually an arrow).
hand Hand.
help Arrow with question mark indicating Help is available.
sizeall Four-pointed arrow pointing north, south, east, and west.
sizenesw Double-pointed arrow pointing northeast and southwest.
sizens Double-pointed arrow pointing north and south.
sizenwse Double-pointed arrow pointing northwest and southeast.
sizewe Double-pointed arrow pointing west and east.
uparrow Vertical arrow pointing upward.
*.ani or *.cur Any .ani or .cur file (must be in the same directory as the .wms file or in the .wmz file).

Remarks

The cursor specified applies to all buttons in the BUTTONGROUP.

If you specify an invalid cursor value, it remains at the previously set value.

Cursor file name paths are ignored, so the cursor file must reside in the default directory.

Requirements

Requirement Value
Version
Windows Media Player version 7.0 or later

See also

BUTTONGROUP Element