Windows Media Player SDK banner art
PreviousNext

Buttons

You will want to use one or more buttons in your skin, and each button must be defined in the skin definition file. If you do not define a button in this section, your skin will not be able to use it.

The buttons section of the skin definition file begins with this line:

[ Buttons ]

You then must add one or more lines that contain information about each of the buttons in your skin

A typical line might be:

    PlayPause  2PushHit   84,99,67,67   Pushed @ 44,50    Disabled @ 44,50     0,255,255  Pushed @ 160,5      Pushed @ 160,98

Note that the above line may wrap when you are viewing this page, but that it should be typed as one line starting with "PlayPause" and ending with "Pushed @ 160,98".

You can use the following template for the button section of your skin definition file:

// <Function> <Type>     <Location>     <Push Image Src> <Dis Image Src>    <Hit R,G,B> <Norm 2 Image Src> <Push 2 Image Src>

// ---------- ------     ----------     ---------------- ---------------    ----------- ------------------ ------------------



Again note that the above two line may wrap when you are viewing this page, but that the first line should be typed as one line starting with "// <Function>" and ending with "<Push 2 Image Src>". The second line starts with "// ----------" and ends with "------------------"

Button information for each line in the button section must appear in the following order. Only the first six parts of the line are required. Secondary images are not included unless they are needed.

  1. Button Function
  2. Button Type
  3. Button Location
  4. Pushed Image Source
  5. Image Source for Disabled Button
  6. Hit RGB Color
  7. Normal Secondary Image Source
  8. Pushed Secondary Image Source
PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.