Windows Media Player SDK banner art
PreviousNext

Region Files

Region files are required if you use any type of hit button (2PushHit, PushHit, ToggleHit).

Region files are used to define areas that will respond to a tap, also known as a hit, on a specific button. For each hit button, an area in the Region bitmap is given a specific Web color (such as #FF0000, solid red). The color number is included in the region button definition, and the button is placed on the background using the coordinates of the area in the Region bitmap.

For example, draw a red circle in a location corresponding to the location of the Next button. Color it solid red (#FF0000). Then in the button definition, assign a Hit RGB value of 255,0,0 (which is the decimal equivalent of #FF0000). The Next button will only respond to taps (hits) inside the red circle.

Region buttons are used when you want to define complex shapes. You must still define the coordinates for each button so that secondary images such as Pushed and Disabled can be located correctly. Each button exists in a rectangle, and the rectangles must not overlap. Using hit buttons lets you define shapes that do not appear rectangular to the user.

Here is a typical Region file:

Region file

This file defines the parts of the screen for each hit-type button. Each color will be identified by its color number in the Buttons section of the skin definition file.

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.