[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 1142

type TCustomProgressBar = class(TWinControl)

protected

  procedure ApplyChanges;

  

  procedure InitializeWnd; override;

  

InitializeWnd - initialise the window for this control

  procedure Loaded; override;

  

  function GetControlClassDefaultSize; override;

  

Find the default size for this class of controls (by reference to parents)

public

  constructor Create(); override;

  

  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 BarShowText: Boolean; [rw]

  

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

end;

Inheritance

TCustomProgressBar

  

The ancestor class for TProgressBar

|

TWinControl

?

TObject

Description

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

The latest version of this document can be found at lazarus-ccr.sourceforge.net.