[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCustomProgressBar

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

The ancestor class for TProgressBar

Declaration

Source position: comctrls.pp line 1727

type TCustomProgressBar = class(TWinControl) end;

protected

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

  procedure ApplyChanges;

  

ApplyChanges - apply any changes that have occurred

  procedure InitializeWnd; override;

  

InitializeWnd calls inherited method then applies changes

  procedure Loaded; override;

  

Loaded calls inherited method then applies changes

  class function GetControlClassDefaultSize; override;

  

GetControlClassDefaultSize returns its own defaults, overriding inherited values

public

  constructor Create(); override;

  

Create - constructor for TCustomProgressBar: calls inherited Create, initialises position, orientation and size

  procedure StepIt;

  

StepIt - move indicator to new position (current position plus Step)

  procedure StepBy();

  

StepBy - move indicator by amount specified in Delta

  property Max: Integer; [rw]

  

Max - maximum value for progressbar

  property Min: Integer; [rw]

  

Min - minimum value of progressbar

  property Orientation: TProgressBarOrientation; [rw]

  

Orientation - horizontal or vertical

  property Position: Integer; [rw]

  

Position of indicator along progressbar

  property Smooth: Boolean; [rw]

  

Whether Smooth display (True) or stepped

  property Step: Integer; [rw]

  

Step - size of increment for display

  property Style: TProgressBarStyle; [rw]

  property BarShowText: Boolean; [rw]

  

BarShowText - some widget sets allow text to be displayed on the bar to indicate its position (eg 32%)

Inheritance

TCustomProgressBar

  

The ancestor class for TProgressBar

|

TWinControl

  

The base class for controls which can contain other (child) controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

TObject

Description

TCustomProgressBar is the ancestor for TProgressBar. If you want to define your own ProgressBar class, you should derive it from this class.