The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



BarColors


Unit: SDL_progbar
Class: TProgBar
Declaration: property BarColors[ix: integer]: TColor;

The property BarColors contains the colors which are mapped to the progress bar if the property ShowColorGradient is TRUE. The parameter ix may assume values between 0 and MAXBARCOLORS.

Hint: Please note that the properties ColorMin and ColorMax are taken from BarColors[0] and BarColors[MAXBARCOLORS], respectively. Writing these properties triggers a re-calculation of the colors in the array BarColors, creating a color gradient between ColorMin and ColorMax.

Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): sdlprogbar



Last Update: 2023-Dec-14