PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Limitations
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
Warning
From version 24, BrushColor is kept for backward compatibility. This property is replaced by BackgroundColor.
The BackgroundColor property is used to get and change the background color of:
  • a control.
  • a window.
  • a page.
  • a report block.
  • Versions 16 and later
    text in a menu option.
    New in version 16
    text in a menu option.
    text in a menu option.
Remark: The effects of the BackgroundColor property depend on the type of control (for more details, see "Remarks").
Example
// The background color is modified according to the displayed value
IF EDT_Total > 15000 THEN
EDT_Total.BackgroundColor = LightRed
END
Syntax

Determining the background color Hide the details

<Background color> = <Element used>.BackgroundColor
<Background color>: Integer or constant
Color of specified element. Corresponds to one of the following options:
<Element used>: Type of element
Name of the element to be used: control, window, page or report block.

Modifying the background color Hide the details

<Element used>.BackgroundColor = <New color>
<Element used>: Type of element
Name of the element to be used: control, window, page or report block.
<New color>: Integer or constant
New color for the specified element. Corresponds to one of the following options:
Remarks

Limitations

Reports and Queries Limitations on report controls
The BackgroundColor property has no effect on:
  • reports (as a whole).
  • Internal Report controls.
  • Versions 21 and later
    Signature controls.
    New in version 21
    Signature controls.
    Signature controls.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment