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

# TTaskDialogProgressBar.Initialize

Sends the initial values for the progress bar to the task dialog where it is hosted.

## Declaration

Source position: dialogs.pp line 725

`public procedure TTaskDialogProgressBar.Initialize;`

## Description

Initialize is a method used to apply the values in the progress bar by notifying the task dialog and its widget. This includes setting the progress bar display style, its minimum and maximum range values, the current position, the drawing state, and the update frequency for a progress bar drawn using the marquee style.

Initialize is called from the DoOnDialogConstructed method in the task dialog when the Handle for the task dialog has been assigned. No actions are performed in the method if the Handle in the task dialog has not been assigned, or when a progress bar has not been enabled using the flags for the task dialog.

## Version info

Added in LCL version 4.0.

## See also

TCustomTaskDialog.Handle |  | Handle for the form displayed for the task dialog.
TCustomTaskDialog.Flags |  | Set of options enabled for the Task dialog.
TCustomTaskDialog.DoOnDialogConstructed |  | Signals the OnDialogConstructed event handler (when assigned).