PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
Draws a border in an Image control.
Example
// Draw a rectangle with blue borders, green background and rounded corners
// in an Image control
 
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
IMG_Drawing.DrawBorder(Rect, BorderStyle, BackgroundStyle)
Syntax
<Image control>.DrawBorder(<Border> [, <Border style> [, <Background style>]])
<Image control>: Control name
Name of Image control to use.
<Border>: Rectangle variable
Name of the Rectangle variable that specifies the limits of the border to draw.
<Border style>: Optional Border variable
Name of Border variable that describes the style of the border to draw.
If this parameter is not specified or if the ..Color, ..Thickness and ..Line properties of the Border variable are undefined, the current style information (defined by <Image>.Pen) is used. If <Image>.Pen was not used: :
  • Border color: corresponds to the background color of the rectangle.
  • Thickness: 1
  • Line: corresponds to the LineSolid constant.
<Background style>: Optional Background variable
Name of the Background variable that describes the background of the border to draw.
If this parameter is not specified, the information of the current brush is used.
Business / GUI classification : Neutral code
Component : wd250pnt.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment