Get progress bar

Hi,

This is the sample post to let the use know that some process is going in the background and keep them updated. 

1)      Progress bar

static void operationProgress_progressBars(Args _args)
{
#AviFiles
SysOperationProgress progress = new SysOperationProgress();
int i;

;

progress.setCaption(“Progress bar example…”);
progress.setAnimation(#AviUpdate);
progress.setTotal(50000);
for (i = 1; i <= 50000; i++)
{
progress.setText(strfmt(“The value of i is %1”, i));
progress.setCount(i, 1);
}
}

2)   Hour Glass Indicators Example:

Use startlengthyoperation() and endlengthyoperation() between ur business logic
Example :

static void HourGlassMousePointer(Args _args)
{
int i;
str value;
;

startLengthyOperation();
for( i = 1; i <= 200000; i++)
{
value += int2str(i) + ‘,’; // some business logic
}

endLengthyOperation();
}

 

for more details please refer below link:

http://dynamicsaxgyan.wordpress.com/?s=progress+bar

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s