Xbasic

{PROGRESS}

Syntax

{PROGRESS=Width Variable}

Arguments

WidthNumeric

Width of the bar in columns.

VariableNumeric

The variable whose progress (from 0 to 100) is being plotted.

Description

The {PROGRESS} command displays a progress bar.

Example 

num = 0
caption = ""
ui_dlg_box("Progress",<<%dlg%
{text=80caption};
{interval=0.1}
{timer=timer}
{progress=80num};
<Reset> <Done>
{line=1};

%dlg% , <<%code%
if a_dlg_button = "timer" then
    a_dlg_button = ""
    if num < 100 then              
        num = num+1
        caption = "Progress ("+num+"%)"
    else
        caption = "Done"
    end if
else if a_dlg_button = "reset" then
    a_dlg_button = ""
    num = 0
end if
%code%)
images/Progress.png

Limitations

Desktop applications only

See Also