To show how many percent of the data has already been processed, during the execution of any lengthy operations, it is customary to use this element. It is called "progress".
Constructors:
NewProgressBar(Parent) - creates an object for the horizontal progress window, and returns a PControl pointer;
NewProgressBarEx(Parent, options) - completely similar to the previous constructor, but allows you to set additional options: vertical direction, and solid fill when painting progress (by default, a set of "bricks" is used).
Properties, methods, events:
Progress - a number that defines the current "percentage" of execution. By default, the maximum value for this property is 100, so this is really a percentage. But the maximum value can be changed:
MaxProgress is the maximum value for the Progress property. To visualize the current progress of execution, a part of it is painted in the ruler window, proportional in area to the Progress / MaxProgress ratio;
ProgressColor - sets the color for shading (for the rest, the Color is used, as usual);
ProgressBkColor - the same as Color - the color for the window itself.
The MCK mirror TKOLProgressBar component chooses which constructor to add to the code to initialize the form, based on design-time options.