Our skin format was developed after analyzing of tons other skin formats. We
hope this format will be useful and popular. Our skin format is
open
and
free! Any new ideas and propositions are
welcome! Send you
ideas to
info@abf-dev.com
We decide to use
4 run-time states for all active areas of program's user
interface:
-
Normal - default state when the area is not disabled.
-
Selected - state when cursor runs over the area (Hot track).
-
Active- state when mouse or key is pressed, and area responds this
activating event (Pressed).
-
Disabled - state when the area doesn't respond any events.
The skin should contain images for all
run-time states are used in the
program.
Active areas have a different look depending on the
run-time state. When you run mouse over the area, it looks like on
the
Selected picture; press the mouse button, and area is show as on
the
Active image, and so on... Here are some examples
of skin images (
Normal,
Selected and
Active):
As you see only active areas should be painted on each image, static areas are
shown as
Normal image. This feature helps to decrease the size of skin
files.
Also our skin format supports
masks.
Masks can be used to define
a shape of the program window or as an area descriptor for
AREA-BY-COLOR algorithm.
Mask can be a
mono or
multi-color... Here
are examples of masks (
mono and
multi-color):
There is also a
skin description file. This file is a standard windows
*.INI file with following section and variables:
[Pictures] - contains file names of all
skin images, can be
relative (Mask = ..\A\Mask.gif).
Mask = file name of
mask graphic.
Normal = file name of
normal image.
Selected = file name of
selected image.
Active = file name of
active image.
Disabled = file name of
disabled image.
[FileInfo] - contains information about skin file.
Project = specifies a program the skin was designed for. We advice to use
program's
exe name.
Description = description of the skin (Name, signature, etc).
Version = version of the skin.
Author = information about author (Name, nickname, etc).
Copyright = legal copyright information.
This is an example of
skin description file:
===========================================================
[FileInfo]
Project=Lens.exe
Description=The default skin for Lens.exe
Version=1.60
Author=KARPOLAN
Copyright=Copyright © 2000-2005 ABF software, Inc.
[Pictures]
Mask=Mask.gif
Normal=Normal.jpg
Selected=Selected.jpg
Active=Active.jpg
Disabled=
===========================================================