AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
  • How the BackgroundStyle property works
  • Limit
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Otros
Procedimientos almacenados
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 in light green with the "Tube" style.
Ejemplo
// Coloration de la cellule JOUR de la ligne en cours
COL_Jour[1].CouleurFond = LightGreen
COL_Jour[1].StyleFond = 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:
styleCrossHatchHatches that use a '+++++' pattern
styleDefaultDefault value. Solid colors.
styleDiagonalCrossHatchHatches that use a 'xxxxx' pattern
styleGradientSimple gradient (to the bottom).
styleHorizontalHatchHatches such as ------
styleLeftDiagonalHatchHatches such as //////
styleRightDiagonalHatchHatches that use a '\\\\\\' pattern
styleTube2 gradients of the main color, used to get a tube effect.
styleVerticalHatchHatches 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:
styleCrossHatchHatches that use a '+++++' pattern
styleDefaultDefault value. Solid colors.
styleDiagonalCrossHatchHatches that use a 'xxxxx' pattern
styleGradientSimple gradient (to the bottom).
styleHorizontalHatchHatches such as ------
styleLeftDiagonalHatchHatches such as //////
styleRightDiagonalHatchHatches that use a '\\\\\\' pattern
styleTube2 gradients of the main color, used to get a tube effect.
styleVerticalHatchHatches 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.
Using the hatches: The color of the hatches is defined by the Color property. 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_SansNom1.Couleur = Black
TABLE_SansNom1.CouleurFond = LightYellow
FOR i = 1 TO 10
TableAddLine(MySelf)
TABLE_SansNom1[i].StyleFond = styleLeftDiagonalHatch
TABLE_SansNom1.COL_SansNom1[i] = gPen(LightRed) + "Ligne " + i
END

Limit

The BackgroundStyle property can only be used on cells, rows and columns of Table and TreeView Table controls.
Versión mínima requerida
  • Versión 11
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 05/03/2024

Señalar un error o enviar una sugerencia | Ayuda local