Windows Media Player SDK banner art
PreviousNext

Creating a Skin Definition File

A skin definition file is a text file that defines a skin and all its composite parts. The file extension must be .skn.

Every skin definition file for the Palm-size, Handheld, or Pocket PC must start with a line that specifies the skin file version number. The following table shows Windows Media Player versions and the code line that should be used to identify each in a skin definition file. Although some of the numbers in the code lines are not what you would expect, they are correct as shown here. Copy them carefully.

Windows Media Player version First line of skin definition file
1.0

1.1

[Pocket WMP Skin File v1.0]
1.2 [Pocket WMP Skin File v1.2]
7.0 [Pocket WMP Skin File v2.0]
7.1 [Pocket WMP Skin File v8.0]

The skin definition file consists of several sections. Each section defines a particular area of the skin. The sections must be placed in the following order:

  1. Bitmaps
  2. Video
  3. Buttons
  4. Status
  5. Text
  6. Marquis
  7. Trackbars

Each section starts with the name of the section in square brackets, for example:

[ Bitmaps ]

Then, one or more lines define individual images, buttons, and so on. For example, a Bitmaps section might include:

    Background  Background.bmp  0,0
    Disabled    Disabled.bmp    40,50
    Pushed      Pushed.bmp      40,50
    Region      Region.bmp      40,50
    Super       Super.bmp       0,0

It is not necessary to line up the values in columns, but it will help your code to be more readable. For more details about each section of the skin definition file, see the Skin Reference.

Note   Do not use tabs anywhere in the file; use extra spaces instead. This is very important, because pressing the tab key while writing or editing your skin definition file will cause the entire skin to fail. Each line must be complete and cannot continue onto a second line.

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.