Vcl.ComCtrls.TProgressBar.BarColor

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property BarColor: TColor read FBarColor write SetBarColor default clDefault;

C++

__property System::Uitypes::TColor BarColor = {read=FBarColor, write=SetBarColor, default=536870912};

Properties

Type Visibility Source Unit Parent
property published
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TProgressBar

Description

Sets and gets the color of the highlighted part of the progress bar.

Use BarColor to set and get the color of the highlighted portion of the progress bar.

Note: Due to a Microsoft limitation, changing the BarColor of a TProgressBar is only possible if the themes option is disabled for the application. This way, the application runs in Windows 95 style, and the property can be used to change the Bar color.