Skip to main content

TcxCustomProgressBarProperties.BarStyle Property

Specifies the progress bar’s paint style.

Declaration

property BarStyle: TcxProgressBarBarStyle read; write; default cxbsSolid;

Property Value

Type Default
TcxProgressBarBarStyle cxbsSolid

Remarks

The table below lists available BarStyle property values, and shows their effect for progress bars that don’t use marquee style.

Note that the overload bar and peak values cannot be displayed when the native paint style is applied via the progress bar’s Style.LookAndFeel.NativeStyle property.

Value Description Native Style Disabled Native Style Enabled
cxbsAnimation A Windows® Vista-style progress bar. The bar’s base color is specified by the BeginColor property. To customize settings of the animated highlight that moves across the progress bar, use the AnimationPath, AnimationRestartDelay, and AnimationSpeed properties. A Windows Vista-Style Progress Bar A Windows XP-Style Progress Bar
cxbsAnimationLEDs A Windows® Vista-style progress bar, painted using a set of rectangles. The base color of rectangles is specified by the BeginColor property. To customize settings of the animated highlight, which moves across the progress bar, use the AnimationPath, AnimationRestartDelay, and AnimationSpeed properties. A Block-Based Animated Progress Bar in Windows Vista Style A Block-Based Animated Progress Bar in Windows XP Style
cxbsSolid The progress bar is represented by a solid rectangle. The bar’s color is set by the BeginColor property. The color of the overload bar (if shown) is specified by the OverloadBeginColor property. A Solid Windows Vista-Style Progress Bar A Solid Windows XP-Style Progress Bar
cxbsLEDs The progress bar is a set of rectangles. The color of rectangles is set by the BeginColor property. The color of rectangles corresponding to the overload bar (if shown) is set using the OverloadBeginColor property. A Block-Based Progress Bar in Windows Vista Style A Block-Based Progress Bar in Windows XP Style
cxbsGradient The progress bar is represented by a rectangle with gradient filling. The starting and ending colors of the gradient are set using the BeginColor and EndColor properties. The starting and ending colors of the overload bar’s area are specified by the OverloadBeginColor and OverloadEndColor properties. A Gradient-Based Progress Bar in Windows Vista Style A Gradient-Based Progress Bar in Windows XP Style
cxbsGradientLEDs The progress bar is a set of rectangles filled using a gradient. The starting and ending colors of the gradient are set using the BeginColor and EndColor properties. The starting and ending colors of the overload bar’s area are specified by the OverloadBeginColor and OverloadEndColor properties. A Block-Based Progress Bar Filled with a Gradient (Windows Vista Style) A Block-Based Progress Bar Filled with a Gradient (Windows XP Style)
cxbsBitmap The progress bar is filled with a custom bitmap. The bitmap is specified by the ForegroundImage property. If the specified image is smaller than the control’s client area, it is tiled. A Bitmap-Filled Progress Bar (Windows Vista Style) A Bitmap-Filled Progress Bar (Windows XP Style)
cxbsBitmapLEDs The progress bar is filled with a custom bitmap that is broken into a set of rectangles. The bitmap is specified by the ForegroundImage property. If the specified image is smaller than the control’s client area, it is tiled. A Blocked Progress Bar Filled with a Bitmap (Windows Vista Style) A Blocked Progress Bar Filled with a Bitmap (Windows XP Style)

Note

The cxbsAnimation and cxbsAnimationLEDs bar styles do not support overload bars and peak values. The animated highlight is painted only if no skin is applied to the progress bar.

Default Value

The BarStyle property’s default value is pbbsSolid.

See Also