Sets the progress bar current position as specified by nPos.
Syntax: |
|---|
| DlxProgressBar.SetPos(nPos) |
Parameters
| Parameter | Description |
|---|---|
| nPos | New position of the progress bar. |
Return Value
If the operation ends correctly, it returns true otherwise it returns false.
Example
Copy code
|
|
|---|---|
var bar = DlxApp.GetProgressBar();
bar.Show("ProgressBar");
for (var i = 0; i < 100; i++)
{
bar.StepIt();
DlxApp.Delay(20);
}
|
|
