PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • 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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 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.
Example
// Dessine un rectangle avec bords bleus, fond vert et coins arrondis
// dans un champ Image
 
// Initialise le dessin dans le champ Image
dStartDrawing(IMG_Dessin)
 
Rect is Rectangle
Rect.X = 10
Rect.Y = 15
Rect.Width = 100
Rect.Height = 150
StyleCadre is Border
StyleCadre.Color  = LightBlue
StyleCadre.Round = 30
StyleCadre.Thickness = 1
StyleFond is Background
StyleFond.Color = LightGreen
dBorder(Rect, StyleCadre, StyleFond)
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:
  • Property Start color (type Color): Start color of gradient.
  • Property ColorFin (type Color): End color of gradient.
  • Property Angle (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°.
  • Property Colour3 (type Color): Color that will be used in the gradient.
  • Property DistanceColor3 (integer): Percentage separating the start color from color 3.
  • Property Colour4 (type Color): Color that will be used in the gradient.
  • Property 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.
Gradients with 3 or 4 colors are only available for 0 or 90 degree angles.
Remarks:
  • On some systems (e.g. TSE 256 colors), gradients are not available. In this case, the color set via Property Color Start 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 (the Property Color is then ignored).
  • BackgroundHatched: Background with hatches (Property Hatch is taken into account).
  • BackgroundGradient: Background with a color gradient (the Property Gradient is taken into account).

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,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 12 and later
dRectangleGradient
New in version 12
dRectangleGradient
dRectangleGradient
Draws a rectangle:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Versions 21 and later
dRoundedRectangle
New in version 21
dRoundedRectangle
dRoundedRectangle
Draws a rounded rectangle:
  • in an Image control,
  • in an Image variable,
  • in a WDPic variable (on the background layer),
  • in a picLayer variable.
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment