Windows Media Player SDK banner art
PreviousNext

Pushed Image Source

You must define the source of the image you want to display when the user pushes a button. The image comes from the file you defined as Pushed in the Bitmaps section. 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 and left coordinates (in pixels) of the image you want to use inside the Pushed image file. The location at which the image will be displayed comes from the coordinates defined for the button relative to the Background image; but the location it comes from is defined by the two numbers following "Pushed @" and is relative to the Pushed image you are reading the image from.

For example, to use an image from the Pushed image that is in the Pushed file at a top and left location of 50,60 pixels, use:

Pushed @ 50,60

You must define a Pushed bitmap. If you do not want to display a different image, you can define the Background bitmap as your Pushed bitmap with an offset of 0,0 and you must still enter:

Pushed @ 50,60

where 50,60 is the location of the button you are working with in the Pushed file (in this case, the same location as the button on the Background bitmap). However, it is highly recommended that you display a Pushed image for all buttons to give your user feedback, because it is not always clear whether a tap produces a result, especially if you have music playing and cannot hear the  tap or have the tapping sound turned off.

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.