|
|
|
|
|
- Properties specific to Background variables
- Functions that use Background variables
Background (Type of variable) In french: Fond
The Background type defines the advanced characteristics of the element background. The characteristics of this background can be defined and changed using different WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. // Draw a rectangle with blue borders, green background and rounded corners // in an Image control  // Initializes the drawing in the Image control dStartDrawing(IMG_Drawing)  Rect is Rectangle Rect.X = 10 Rect.Y = 15 Rect.Width = 100 Rect.Height = 150 BorderStyle is Border BorderStyle.Color = LightBlue BorderStyle.Round = 30 BorderStyle.Thickness = 1 BackgroundStyle is Background BackgroundStyle.Color = LightGreen dBorder(Rect, BorderStyle, BackgroundStyle)
Remarks Properties specific to Background variables The following properties can be used to handle the background of an element: | | | Property name | Type used | Effect |
---|
Color | Color variable | Background color. | Gradient | | Gradient of the background color: - ColorStart property (Color type): Start color of the gradient.
- ColorEnd property (Color type): End color of the gradient.
- Angle property (integer): Angle that will be used for the selection of colors in the gradient. The angle value is included between 0 (horizontal angle, default value) and 360°.
- Color3 property (Color type): Color that will be used in the gradient.
- DistanceColor3 property (integer): Percentage separating the start color from color 3.
- Color4 property (Color type): Color that will be used in the gradient.
- DistanceColor4 property (integer): Percentage separating the start color from color 4.
The color parameters are used as follows: The angle is used to define the orientation of the gradient. Gradients with 3 or 4 colors are only available for 0 or 90 degree angles. Remarks: - On some systems (e.g., 256-color Remote Desktop Connection), gradients are not available. In this case, the color defined via the ColorStart property is used.
- Gradient backgrounds are not supported in docx documents.
| Hatch | Integer constant | Type of hatching used: - HatchNone: No hatching.
- HatchCrossed: Criss-crossed hatching.
- HatchCrossedDiagonal: Diagonal crossed hatching.
- HatchDiagonal: Diagonal hatching at 60%.
- HatchDiagonalBottom: Diagonal hatching at 120%.
- HatchHorizontal: Horizontal hatching.
- HatchVertical: Vertical hatching.
| Type | Integer constant | Type of background: - BackgroundSolid: Solid background.
- BackgroundTransparent: Transparent background (the Color property is ignored).
- BackgroundHatched: Hatched background (the Hatch property is taken into account).
- BackgroundGradient: Background with color gradient (the Gradient property is taken into account).
|
Functions that use Background variables
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|