PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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 Border property is used to get and change the characteristics of the borders:
  • for a report control or block.
  • Versions 20 and later
    WINDEV for a window control.
    New in version 20
    WINDEV for a window control.
    WINDEV for a window control.
  • Versions 22 and later
    WINDEV for a cell of a Table control.
    New in version 22
    WINDEV for a cell of a Table control.
    WINDEV for a cell of a Table control.
Versions 20 and later
WINDEV This property is now available on window controls.
New in version 20
WINDEV This property is now available on window controls.
WINDEV This property is now available on window controls.
Example
// Define the characteristics of the borders for report controls
MyBorder is Border
MyBorder.Color = LightRed
MyBorder.Thickness = 5
 
// Borders for the NumNbPage control in the report
NumNbPage.Border = MyBorder
// Modify the characteristics of the borders for the NumNbPage control
NumNbPage.Border.Thickness = 1
 
// Get the characteristics of the borders for the NumNbPage control
MyBorder2 is Border = NumNbPage.Border
Versions 22 and later
WINDEV
// Configures the borders
MyBorder is Border
MyBorder.Color = LightRed
MyBorder.Thickness = 5
 
// Specific feature of the bottom line
MyBorder.LineBottom.Type = LineDash
MyBorder.LineBottom.Color = DarkRed
 
// Applies the borders to cell 2, 2 (2nd row, 2nd column)
TABLE_MyTable[2,2].Border = MyBorder
// or
TABLE_MyTable.COL_NoName2[2].Border = MyBorder
New in version 22
WINDEV
// Configures the borders
MyBorder is Border
MyBorder.Color = LightRed
MyBorder.Thickness = 5
 
// Specific feature of the bottom line
MyBorder.LineBottom.Type = LineDash
MyBorder.LineBottom.Color = DarkRed
 
// Applies the borders to cell 2, 2 (2nd row, 2nd column)
TABLE_MyTable[2,2].Border = MyBorder
// or
TABLE_MyTable.COL_NoName2[2].Border = MyBorder
WINDEV
// Configures the borders
MyBorder is Border
MyBorder.Color = LightRed
MyBorder.Thickness = 5
 
// Specific feature of the bottom line
MyBorder.LineBottom.Type = LineDash
MyBorder.LineBottom.Color = DarkRed
 
// Applies the borders to cell 2, 2 (2nd row, 2nd column)
TABLE_MyTable[2,2].Border = MyBorder
// or
TABLE_MyTable.COL_NoName2[2].Border = MyBorder
Syntax

Retrieving the characteristics of a border Hide the details

<Characteristics> = <Element used>.Border
<Characteristics>: Border variable
Border variable containing the characteristics of the borders for the specified element.
<Element used>: Control name
  • Name of control or block used. This element is found in the current report.
  • Versions 20 and later
    WINDEV Name of the window control used.
    New in version 20
    WINDEV Name of the window control used.
    WINDEV Name of the window control used.
  • Versions 22 and later
    WINDEV Cell in a Table control by using one of the following syntaxes:
    • <Table control>[RowNum,ColumnNum]
    • <Table control>.<Column name>[RowNum]
    New in version 22
    WINDEV Cell in a Table control by using one of the following syntaxes:
    • <Table control>[RowNum,ColumnNum]
    • <Table control>.<Column name>[RowNum]
    WINDEV Cell in a Table control by using one of the following syntaxes:
    • <Table control>[RowNum,ColumnNum]
    • <Table control>.<Column name>[RowNum]

Defining borders through programming Hide the details

<Element used>.Border = <Border characteristics>
<Element used>: Control name
  • Name of control or block used. This element is found in the current report.
  • Versions 20 and later
    WINDEV Name of the window control used.
    New in version 20
    WINDEV Name of the window control used.
    WINDEV Name of the window control used.
  • Versions 22 and later
    WINDEV Cell in a Table control by using one of the following syntaxes:
    • <Table control>[RowNum,ColumnNum]
    • <Table control>.<Column name>[RowNum]
    New in version 22
    WINDEV Cell in a Table control by using one of the following syntaxes:
    • <Table control>[RowNum,ColumnNum]
    • <Table control>.<Column name>[RowNum]
    WINDEV Cell in a Table control by using one of the following syntaxes:
    • <Table control>[RowNum,ColumnNum]
    • <Table control>.<Column name>[RowNum]
<Border characteristics>: Border variable
Border variable containing the characteristics of the borders that will be applied to the specified element.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment