|
|
|
|
|
- How the BackgroundStyle property works
- Limitation
BackgroundStyle (Property)
Advertencia
A partir de la versión 26, BrushStyle se conserva por motivos de compatibilidad. Esta propiedad ha sido reemplazada por BackgroundStyle.
The BackgroundStyle property is used to get and modify the background style of cells in tables and/or TreeView Tables. This property is effective only if the row, column or cell uses a background color specified with the BackgroundColor property. This property can be used to highlight a specific cell in the table. Example: The "Monday" cell is colored light green with the "Tube" style..
COL_Day[1].BackgroundColor = LightGreenCOL_Day[1].BackgroundStyle = styleTube Sintaxis
Finding out the style of the background color Ocultar los detalles
<Background style> = <Element to handle>.BackgroundStyle
<Background style>: Integer constant Background style currently used:
| | styleCrossHatch | Hatches that use a '+++++' pattern | styleDefault | Default value. Solid colors. | styleDiagonalCrossHatch | Hatches that use a 'xxxxx' pattern | styleGradient | Simple gradient (to the bottom). | styleHorizontalHatch | Hatches such as ------ | styleLeftDiagonalHatch | Hatches such as ////// | styleRightDiagonalHatch | Hatches that use a '\\\\\\' pattern | styleTube | 2 gradients of the main color, used to get a tube effect. | styleVerticalHatch | Hatches such as ||||| |
<Element to handle>: Character string Identifies the cell, row or column from a Table or TreeView Table control that must be managed.
Modifying the style of the background color Ocultar los detalles
<Element to handle>.BackgroundStyle = <New style>
<Element to handle>: Character string Identifies the cell, row or column from a Table or TreeView Table control that must be managed. <New style>: Integer constant Background style to use:
| | styleCrossHatch | Hatches that use a '+++++' pattern | styleDefault | Default value. Solid colors. | styleDiagonalCrossHatch | Hatches that use a 'xxxxx' pattern | styleGradient | Simple gradient (to the bottom). | styleHorizontalHatch | Hatches such as ------ | styleLeftDiagonalHatch | Hatches such as ////// | styleRightDiagonalHatch | Hatches that use a '\\\\\\' pattern | styleTube | 2 gradients of the main color, used to get a tube effect. | styleVerticalHatch | Hatches such as ||||| |
Observaciones How the BackgroundStyle property works The BackgroundStyle property applies changes to cells, rows or columns only if the color of these elements has been set with the BackgroundColor property. Hatch usage: Hatch color is set by property Color. By default, the color of the hatches corresponds to the color of the text. To use a different color for the text, use gPen. Example: TABLE_NoName1.Color = Black
TABLE_NoName1.BackgroundColor = LightYellow
FOR I = 1 TO 10
TableAddLine(MySelf)
TABLE_NoName1[I].BackgroundStyle = styleLeftDiagonalHatch
TABLE_NoName1.COL_NoName1[I] = gPen(LightRed) + "Row " + IEND Limitation The BackgroundStyle property can only be used on cells, rows and columns of Table and TreeView Table controls.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|