Share via


Windows Media Player 11 SDK Image Source for Disabled Trackbar 

Windows Media Player SDK banner art

Previous Next

Image Source for Disabled Trackbar

You must define the source of the image you want to display when a trackbar is disabled, using the bitmap type you want to draw the image from. The image you display will usually be inside the Super file or if you are creating a skin for Windows Media Player 10 Mobile, the image would be inside the SeekThumb file. You must enter the image type followed by a space and the @ symbol and another space. You must then enter two positive integers that define the top-left coordinates (in pixels) of the image you want to use inside the bitmap type you are drawing from.

For example, to use an image from the SeekThumb bitmap that has a top and left position of 50,60 pixels, type:

  

You must define an image location for a disabled trackbar image. If you do not want to display a new image, you can define the Background image as your Disabled image with an offset of 0,0:

  

In the preceding example, 50,60 represents the location of the button you are working with in the SeekThumb file (in this case, the same location as the button on the Background bitmap). However, it is highly recommended that you display a Disabled image for all trackbars to give your user a visual indication, because trackbars will not be useable under certain conditions. For example, Seek trackbars may be disabled when the current playlist is empty.

See Also

Previous Next