| |
Skin as Variant |
A string expression that indicates:
- an Windows XP Theme part, it should start with "XP:". For
instance the "XP:Header 1 2" indicates the part 1 of the
Header class in the state 2, in the current Windows XP theme. In this case
the format of the Skin parameter should be: "XP: Control/ClassName Part
State" where the ClassName defines the window/control class name in the
Windows XP Theme, the Part indicates a long expression that defines the
part, and the State indicates the state like listed at the end of the
document. This option is available only on Windows XP that supports
Themes API.
- a copy of another skin with different coordinates, if it begins with
"CP:" . For instance, you may need to display a specified skin on
a smaller rectangle. In this case, the string starts with "CP:",
and contains the following "CP:n l t r b", where the n is
the identifier being copied, the l, t, r, and b indicate the left, top,
right and bottom coordinates being used to adjust the rectangle where the
skin is displayed. For instance, the "CP:1 4 0 -4 0",
indicates that the skin is displayed on a smaller rectangle like follows.
Let's say that the control requests painting the {10, 10, 30, 20} area, a
rectangle with the width of 20 pixels, and the height of 10 pixels, the skin
will be displayed on the {14,10,26,20} as each coordinates in the
"CP" syntax is added to the displayed rectangle, so the skin looks
smaller. This way you can apply different effects to your objects in your
control. The following screen shot shows the control's header when using a
"CP:1 -6 -6 6 6", that displays the original skin on larger
rectangles .
- the path to the skin file ( *.ebn ). The Exontrol's
exButton component installs a skin builder that should be used to create
new skins
- the BASE64 encoded string that holds a skin file ( *.ebn ). Use the
Exontrol's exImages
tool to build BASE 64 encoded strings on the skin file (*.ebn) you have
created. Loading the skin from a file ( eventually uncompressed file ) is
always faster then loading from a BASE64 encoded string
A byte[] or safe arrays of VT_I1 or VT_UI1 expression that indicates the
content of the EBN file. You can use this option when using the EBN file
directly in the resources of the project. For instance, the VB6 provides the
LoadResData to get the safe array o bytes for specified resource, while in
VB/NET or C# the internal class Resources provides definitions for all files
being inserted. ( ResourceManager.GetObject("ebn", resourceCulture) ).
| |