MEGAmorphis SDK
(last updated June 26, 2002)
Version requirements: MJ 8.0.293 and above

Introduction

File called Main.xml is main file for the skin. You need to include file named TheSkin.gif (jpg,bmp) (preferred size: 310x210) with your skin package, this image will be displayed in Skin Manager.

Main skin items:

  1. Skin
  2. Frame
  3. PlayerWindow
  4. Tree
  5. List
  6. StatusBar
  7. ProgressBar
  8. GroupBox
  9. Tab
  10. Slider
  11. UpDown

Skin

This is where you give the skin its name, identify yourself as the author, and add any special notes about the skin.

Attributes:


Frame

Frame is the most complicated part of MegaMorphis skinning. It contains all items necessary to change the look of the main application.

Frame Items:

CaptionArea - Top area of the frame with text in it.

    Attributes:

Icon - top area of the frame with image

    Attributes:

CloseButton  - button to close application
MaximizeButton -
button to maximize application
MinimizeButton -
button to minimize application
RestoreButton - ( optional)
button to restore application from maximized state.

    Attributes:

LeftBorder - left border of the frame
RightBorder -
right border of the frame
TopBorder -
top border of the frame
BottomBorder -
bottom border of the frame

    Attributes:

Button - generic windows button

    Attributes:

DialogBack - background of some pop-up and some internal windows

    Attributes:

TextBox - generic text area.

    Attributes:

Edit - generic edit window

    Attributes:

ComboBox - generic combobox window

    Attributes:

CheckBox - generic checkbox window

    Attributes:

RadioButton - generic radiobutton window

    Attributes:


PlayerWindow

Player window is the window in the left bottom corner of the Media Jukebox.

Button: PlayButton, StopButton, PauseButton, NextButton, PreviousButton, ShuffleButton, ShuffleOffButton, ContinuousButton, ContinuousOffButton, OptionsButton

    Attributes:

Areas: Display, ControlBar, TargetBar

    Attributes:

Sliders: VolumeSlider, PositionSlider

    Attribute:

Slider Thumbs: VolumeSliderThumb, PositionSliderThumb

    Attributes:


Tree

Colors:

    Attributes:


List

Colors:

    Attributes:

HeaderBar:

 


StatusBar

Colors:

    Attributes:


ProgressBar

Bitmaps: Back, Front

Attributes:


GroupBox

Colors:

    Attributes:

Bitmaps: LeftBorder, RightBorder, TopBorder, BottomBorder

    Attributes:

 

 


Tab

Colors:

    Attributes:

Bitmaps: Button, LeftBorder, RightBorder, TopBorder, BottomBorder

    Attributes:


Slider

Bitmaps: Horizontal Background, Vertical background

    Attributes:

Bitmaps: Horizontal Handle, Vertical Handle

    Attributes:


UpDown

Bitmaps: Up, Down, Left, Right

    Attributes:


Apendix A

Drawing image

NumberImages describes how many sub images are there in a bitmap, default value for the attribute is 1. Every sub image is broken into 9 regions and draws each one separately

Here is the diagram of the image regions:

A | B | C
----------
D | E | F
----------
G | H | I

Margins help to define regions size, for example Margins="10,5,20,30" where 10 - left margin, 5 - top margin, 20 - right margin, 30 - bottom margin, will create 9 regions with following sizes:

A - 10 x 5
B - X x 5
C - 20 x 5
D - 10 x Y
E - X x Y
F - 20 x Y
G - 10 x 30
H - X x 30
I - 20 x 30

To change default drawing behavior for sub image use DrawMode attribute.

DrawMode values: