SetStep

Applies to

HProgressBar and VProgressBar controls

Description

A progress bar has a range and a current position. The SetStep property allows you to set the size of the increments by which the current position advances as progress is shown. The default value is 10.

Usage

In a painter

To set the increment size:

  • Use the spin control or enter an integer in the SetStep text box on the General page of the control's Properties view.

In a script

SetStep takes an integer value. In the following example, the range of the progress bar is set to 0 to 500, and the step value is set to 50:

hpb_1.setrange(0,500)
hpb_1.setstep = 50