ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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
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
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 control: cell, row, column
  • TreeView Table control: cell, row, column
  • Pivot Table control: cell or multi-selection of cells.
Remark: This option is only available for controls populated programmatically or with in-memory data source. 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 selected color is available when displaying the control only. 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: 10/02/2023

Send a report | Local help