PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Coloring an element
  • Programming
  • Programming the color of cells, rows, ...
  • Disabling the coloring of the control elements
  • Modifying the caption of the "Background color" option in the popup menu
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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.
Note: This option is available for the memory controls and for the "Loaded in memory" browsing controls. This option is not available for the browsing Table controls with direct access.
Coloring an element
To color a row, column, cell, ...:
  1. Select the element to color in the control.
  2. Select "Background color" from the popup menu of element and select the requested color in the list.
The "Default color" option is used to restore the initial color.
Note: 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 by programming with the following properties:
See Managing the colors in the Table controls for more details

Disabling the coloring of the control elements

To prevent from coloring the control elements, all you have to do is use DisableAAF associated with the aafChangeBackgroundColor constant. The menu option will not be proposed.
For example:
// Prevent from changing the background color
DisableAAF(TABLE_Customer, aafChangeBackgroundColor)
To prevent from coloring the control elements, all you have to do is use AAFDisable (or DisableAAF) associated with the aafChangeBackgroundColor constant. The menu option will not be proposed.
For example:
// Prevent from changing the background color
AAFDisable(TABLE_Customer, aafChangeBackgroundColor)
Versions 21 and later

Modifying the caption of the "Background color" option in the popup 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")
New in version 21

Modifying the caption of the "Background color" option in the popup 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")

Modifying the caption of the "Background color" option in the popup 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 required version
  • Version 20
Comments
Click [Add] to post a comment