PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of Background variables
  • Functions that use the Background variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The Background type is used to define the advanced characteristics of the element background. The characteristics of this background can be defined and modified by several WLanguage properties.
Note: See Declaring a variable for more details.
Example
// Draw a rectangle with blue borders, green background and rounded corners
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 the description of Background variables

The following properties can be used to handle the background of an element:
Property nameType usedEffect
ColorColor variableBackground color.
GradientGradient of the background color:
  • ..ColorStart (Color type): Start color of gradient.
  • ..ColorEnd (Color type): End color of gradient.
  • ..Orientation (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 (Color type): Color that will be used in the gradient.
  • ..DistanceColor3 (integer): Percentage separating the start color from color 3.
  • ..Color4 (Color type): Color that will be used in the gradient.
  • ..DistanceColor4 (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.
The gradients performed with 3 or 4 colors are only available for an angle set to 0 or 90 degrees.
Notes:
  • The gradient colors are not available for some systems (Windows 98 or Me for example) or for TSE 256 colors. In this case, <Start Color> is displayed.
  • Versions 22 and later
    The gradient backgrounds are not supported in the docx documents.
    New in version 22
    The gradient backgrounds are not supported in the docx documents.
    The gradient backgrounds are not supported in the docx documents.
HatchInteger constantType 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.
TypeInteger constantType of background:
  • BackgroundSolid: Solid background.
  • BackgroundTransparent: Transparent background (..Color is ignored).
  • BackgroundHatched: Hatched background (..Hatch is taken into account).
  • BackgroundGradient: Background with color gradient (..Gradient is taken into account).

Note: These properties can be handled by using one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Functions that use the Background variables

Versions 21 and later
dBorder
New in version 21
dBorder
dBorder
Draws a border.
Versions 09 and later
dRectangle
New in version 09
dRectangle
dRectangle
Draws a rectangle
  • in an Image control,
  • in an Image variable].
Versions 12 and later
dRectangleGradient
New in version 12
dRectangleGradient
dRectangleGradient
Draws a rectangle
  • in an Image control,
  • in an Image variable].
Versions 21 and later
dRoundedRectangle
New in version 21
dRoundedRectangle
dRoundedRectangle
Draws a rounded rectangle:
  • in an Image control,
  • in an Image variable.
Minimum required version
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment