ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Defining the color of the progress bar in the window editor
  • 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
ProgressBarColor (Property)
In french: CouleurJauge
The ProgressBarColor property gets and sets the progress color in the following controls and elements:
  • WINDEVWEBDEV - Server codeWEBDEV - Browser codeAndroidJavaPHP Progress Bar control,
  • WINDEVAndroidiPhone/iPad Progress Bar column,
  • WINDEV Progress Bar cell,
  • iPhone/iPad infinite Progress Bar control of type "Native circular".
Java This property can only be used on Progress Bar controls.
Example
WINDEVReports and QueriesUser code (UMC)
// Change the color of the progress bar for the cells of a Table control
COL_ProgBar[2].ProgressBarColor = DarkGreen
COL_ProgBar[3].ProgressBarColor = LightRed
Syntax

Getting the color of a progress bar Hide the details

<Progression color> = <Control used>.ProgressBarColor
<Progression color>: Integer or constant
Color of the progress bar displayed in the specified element. This color can correspond to:
<Control used>: Control name
Name of the control to be used. This control can correspond to:
  • WINDEVWEBDEV - Server codeWEBDEV - Browser codeAndroidJavaPHP a Progress Bar control,
  • WINDEVAndroidiPhone/iPad a Progress Bar column,
  • WINDEV a Progress Bar cell,
  • iPhone/iPad an infinite Progress Bar control representing a native circular progress bar.

Setting the color of a progress bar Hide the details

<Control used>.ProgressBarColor = <Progression color>
<Control used>: Control name
Name of the control to be used. This control can correspond to:
  • WINDEVWEBDEV - Server codeWEBDEV - Browser codeAndroidJavaPHP a Progress Bar control,
  • WINDEVAndroidiPhone/iPad a Progress Bar column,
  • WINDEV a Progress Bar cell,
  • iPhone/iPad an infinite Progress Bar control representing a native circular progress bar.
<Progression color>: Integer or constant
Color of the progress bar displayed in the specified element. This color can correspond to:
Remarks
WINDEVJava

Defining the color of the progress bar in the window editor

The color of a progress bar can be defined in the "Style" tab of the control description ("Color" option of the "Progress percentage" element).
If the progress bar uses a gradient color, it will change while maintaining the same lightness.

Limitations

  • The ProgressBarColor property can be used:
    • on Progress Bar controls,
    • on Progress Bar columns (for Table and TreeView Table controls),
    • on Progress Bar cells (for Table and TreeView Table controls).
  • If the progress bar uses an image to show the progress, the ProgressBarColor property has no effect.
WEBDEV - Server codeWEBDEV - Browser codeJavaPHP This property can only be used on Progress Bar controls.
Android This property can be used on Progress Bar controls and Progress Bar table columns.
iPhone/iPad This property can be used on:
  • infinite Progress Bar controls of type "Native circular".
  • Progress Bar table columns.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/14/2024

Send a report | Local help