Vcl.ComCtrls.TProgressBar.Max

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Max: Integer read GetMax write SetMax default 100;

C++

__property int Max = {read=GetMax, write=SetMax, default=100};

Properties

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

Description

Specifies the upper limit of the range of possible positions.

Use Max along with the Min property to establish the range of possible positions of a progress bar. When the process tracked by the progress bar is complete, the value of Position should equal Max.

Note: On Windows operation systems with a common controls library (comctl32.dll) lower than version 4.70, the value of Max is treated as a 16-bit number. This means that the maximum value allowed by Max is 65,535.

See Also


Code Examples