Compartir a través de


Text (Windows Media Player SDK)

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

You may want to use one or more text display boxes in your skin. Each text display box you use must be defined in the skin definition file. If you do not define a text display box in this section, your skin will not be able to use it.

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

[ Text ]

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

    Time         180,46,50,30   Right    Tahoma,16,N     255,255,255

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

//  <Type>       <Location>     <Align> <Font>          <Color>
//  ------       ----------     ------- ------          -------

You must use the order shown in the preceding template for text display box information for each line in the Text section. Each part of the line is required. The following sections describe each item in detail.

  1. Text Type
  2. Text Location
  3. Text Alignment
  4. Text Font
  5. Text Color

For an example of Text code, see Sample Text Section.

Skin Reference