How to define a skin?
This chapter explains the following:

The Format of SkinInfo.ini
The definition file of skin is named SkinInfo.INI in the skin directory. The file contains many sections. Each section defines a skin.

A section contains many lines which define the details of the skin. Each section begin with a skin name in a pair of bracket "[" and "]". e.g. The following line define a skin named "Classical"

[Classical]

The second line defines the file name of the skin (in a pair of round brackets "(" and ")").

The third line defines the size of the skin (in a pair of bracket "[" and "]"). The first number is the width of the skin in pixels and the second number is the height of the skin in pixels. The format is : [width, height].

The forth line defines the number of desktops this skin containing. Only a number, no any brackets.

The following lines define the position and size of the desktop icon on the image. Each line defines one. The first two numbers is the position of the desktop icon (in pixels) and the second two numbers define the size of the desktop icon. The format is: (x, y, width, height). Be sure that the number of these desktop-icon-definition lines matches the number of the desktops defined in the forth line.

Then there are at least one blank line.

Then you can add another section or end the definition file with a line only containing "[.] ".

You can add comments in the end of each line beginning with "//".

The following is a example:

[Classical] // Skin name

(Skin-1.bmp) // Skin file name
[135, 155] // The width and height of skin
4 // Desktop count
(5, 5, 60, 60) // x, y, width, height
(70, 5, 60, 60)
(5, 70, 60, 60)
(70, 70, 60, 60)

How to Define a Skin?

You can first draw a bitmap and then add the skin definition in the SkinInfo.INI file in skin directory. Then restart the Virtual Desk and the new skin will be added.

Copyright (C) 2002 JDSoft Inc., All rights reserved.
Virtual Desk TM is a trademark of JDSoft Inc.
document date: March 1, 2002