The
The constants provided by the JadeSkinArea class are listed in the following table.
Constant | Integer Value | Constant | Integer Value |
---|---|---|---|
BorderStyle_3DRaised | 3 | BorderStyle_3DSunken | 2 |
BorderStyle_Images | 4 | BorderStyle_None | 0 |
BorderStyle_Single | 1 |
For details about the
Property | Default Value | Description |
---|---|---|
|
Default_Color | Background color of the area if the inner image is not supplied or it is not a brush |
|
Null | Optional bottom left of the area |
|
Null | Optional bottom right of the area |
|
Null | Optional bottom strip of the area |
|
Null | Optional left strip of the area |
|
Null | Optional right strip of the area |
|
Null | Optional top left of the area |
|
Null | Optional top right of the area |
|
Null | Optional top strip of the area |
|
Null | Optional inner image for the area |
|
True | Specifies whether the optional inner image is a brush for the entire area or a centered image (set to true by default) |
The following diagram illustrates the layout of a skin, which is made up of eight border segments and an inner segment.
A JadeSkinArea is drawn as follows.
Segment 1
The top-left image (
The height drawn is usually the minimum of the top-left image height and the top-center strip height.
The exception is if the top-left image height is greater than the top-center strip height and the top-left image width is less than the left-center strip width. In that case, the top-left image height is used.
The top-left image can be higher than the top-center strip if the left-center strip is at least the same width.
Segment 2
The top-right image (
The height drawn is usually the minimum of the top-right image height and the top-center strip height.
The exception is if the top-right image height is greater than the top-center strip height and the top-right image width is less than the right-center strip width. In that case, the top-right image height is used
The top-right image can be higher than the top-center strip if the right-center strip is at least the same width.
Segment 3
The top center strip (
Segment 4
The bottom-left image (
The height drawn is usually the minimum of the bottom-left image height and the bottom-center strip height.
The exception is if the bottom-left image height is greater than the bottom-center strip height and the bottom-left image width is less than the left-center strip width. In that case, the bottom-left image height is used.
This allows the bottom-left image to be higher than the bottom-center strip if the left-center strip is at least the same width.
Segment 5
The bottom-right image (
The height drawn is usually the minimum of the bottom-right image height and the bottom-center strip height.
The exception is if the bottom-right image height is greater than the bottom-center strip height and the bottom-right image width is less than the right-center strip width. In that case, the bottom-right image height is used.
This allows the bottom-right image to be higher that bottom-center strip if the right-center strip is at least the same width.
Segment 6
The bottom center strip (
Segment 7
The left-center strip (
Segment 8
The right-center strip (
Segment 9
The center image (
Segments 3 and 6 determine the respective top and bottom heights of the border. Segments 7 and 8 determine the respective left and right widths of the border.
Unexpected results may occur if an image has a size that is inappropriate or does not correspond to a specific area.
A corner segment is drawn to its full height if the width is the same as the corresponding left or right strip. For example, segment 1 can be higher that segment 3, provided that segment 1 is the same width as segment 7. You can use this to achieve rounded border effects. For details, see "JadeSkinWindow Class", in the following section.
The following characteristics of the JadeSkinArea class are affected by additional subclass property values.
If optional border images (that is, areas 1 through 8 in the above diagram) are not present, the inner area of the skin is the entire area.
You can define the optional inner image by setting the value of the
A
For details, see