DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:update_progress_bar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

built_in:update_progress_bar [2015/03/26 18:15] (current)
madlyr created
Line 1: Line 1:
 +===== UpdateProgressBar =====
  
 +====Description====
 +
 +The **UpdateProgressBar** method updates progress in a popup window shown by [[built_in:​show_progress_bar|ShowProgressBar]] method with percentage in **percent** parameter.
 + 
 +<​code>​ app.UpdateProgressBar( percent );</​code>​
 +
 +See also: [[built_in:​show_progress_bar|ShowProgressBar]],​ [[built_in:​hide_progress_bar|HideProgressBar]]
 +
 +----
 +
 +====Example====
 +
 +<code javascript>​
 +
 +function OnStart()
 +{
 +  app.ShowProgressBar( "​Processing...",​ 0 );
 +  setTimeout( "​app.UpdateProgressBar(25)",​ 1000 );
 +  setTimeout( "​app.UpdateProgressBar(50)",​ 2000 );
 +  setTimeout( "​app.UpdateProgressBar(75)",​ 3000 );
 +  setTimeout( "​app.UpdateProgressBar(100)",​ 4000 );
 +  setTimeout( "​app.HideProgressBar()",​ 4100 );
 +}
 +
 +</​code>​
built_in/update_progress_bar.txt ยท Last modified: 2015/03/26 18:15 by madlyr