Windows Media Player SDK banner art
PreviousNext

THEME Element

The THEME element is the parent-level element of a skin, containing all other elements. Within a script, it is accessed through the theme global attribute, rather than through an id attribute specified in the THEME element.

The THEME element supports the following attributes.

Attribute Description
author Specifies or retrieves the name of the author of the skin.
authorVersion Specifies or retrieves the version number of the skin as assigned by the author.
copyright Specifies or retrieves the copyright string for the skin.
currentViewID Specifies or retrieves the currently displayed VIEW.
title Specifies or retrieves the title of the skin.
version Specifies or retrieves the Windows Media Player version number for which the skin was authored.

The THEME element supports the following methods.

Method Description
closeView Closes an open VIEW.
loadPreference Loads a preference from the registry.
logString Logs a user-defined string to the error file, if logging is enabled.
openDialog Opens a file dialog box.
openView Opens a VIEW in a new window.
savePreference Saves a preference in the registry.
showErrorDialog Displays the standard error dialog box.

The THEME element does not support event handlers.

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.