ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Automatic Application Features (AAF) / AAF on Tables/TreeView Tables
  • Overview
  • Coloring an element
  • Programming
  • Programming the color of cells, rows, ...
  • Disabling colors on the elements of a control
  • Modifying the caption of the "Background color" option in the context menu
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
To simplify the reading in the controls used to view large volumes of data, the end user has the ability to color the data found in the control.
The data displayed in the following controls can be colored:
  • Table field: cell, row, column
  • Field Hierarchical table: cell, row, column
  • Dynamic Crosstab array: cell or multi-selection of cells.
Note: This option is only available for "programmed" fields or "file loaded into memory" fields.. This option is not available for Table controls with direct access to the data source.
Coloring an element
To color a row, column, cell, ...:
  1. Select the element to color in the control.
  2. Select "Background color" in the context menu of element and select the requested color in the list.
The "Default color" option is used to restore the initial color.
Remark: The chosen color is only available when the. This information will not be stored when closing the window.
Programming

Programming the color of cells, rows, ...

The colors of a Table control (background color of rows, cells) can be modified through programming with the following properties:
For more details on the syntaxes to use, see Defining colors in Table controls.

Disabling colors on the elements of a control

To disable colors on the elements of a control, use AAFDisable with the aafChangeBackgroundColor constant. The menu option will not be proposed.
For example:
// Prevent from changing the background color
AAFDisable(TABLE_Customer, aafChangeBackgroundColor)

Modifying the caption of the "Background color" option in the context menu

The caption of the menu option allowing the user to modify the background color is "Background color". To modify this caption, use AAFChangeCaption associated with the aafChangeBackgroundColor constant.
For example:
// Prevent from changing the background color
AAFChangeCaption(TABLE_Customer, aafChangeBackgroundColor, "Choose a background color")
Minimum version required
  • Version 20
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help