Windows Media Player SDK banner art
PreviousNext

Button Feedback Files

Your skin can give the user feedback when a button is tapped by displaying an alternate image. For example, you can substitute a blue image for an orange image when the user taps on a particular button.

There are two types of button feedback files: Disabled and Pushed.

Disabled File

The Disabled file contains the images that will be displayed when a particular button function cannot be used or a button state is off. For example, if an empty playlist is defined, the Next and Prev buttons will be displayed, and they should be displayed using a disabled image. Also, for toggle buttons, Disabled is used to indicate that the state is off.

Here is a typical Disabled file:

Disabled file

This stores the images for hit-type buttons that are disabled. The images are similar to the Background file, but the colors are lighter. Using the offset defined in the Bitmaps section, the button images line up with the Background file image.

Notice that the background of the button image exactly matches the corresponding area in the Background file. This is important, because when a hit-type button is unavailable, the entire rectangle defined for the disabled image will replace the matching area in the Background file. Keep the graphic consistent with the background image to ensure that only the parts of the button that you want to appear different will actually change.

Pushed File

The Pushed file contains the images that will be displayed when the user taps on a button. You can also include the normal and pushed images for the pause state of the PlayPause button.

Here is a typical Pushed file:

Pushed file

This stores the images that will be displayed when the hit-type buttons are tapped. Also stored in this file are the normal and pushed images for the paused image of the PlayPause button. Except for the PlayPause secondary images on the right, the other button images line up with the Background image, using the offset defined in the Bitmaps section.

Notice that the background of the button image exactly matches the corresponding area in the Background file. This is important, because when the user taps a hit-type button, the entire rectangle defined for the pushed image will replace the matching area in the Background file. Keep the graphic consistent with the background image to ensure that only the parts of the button that you want to appear different will actually change.

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.