DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:show_progress_bar

Differences

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

Link to this comparison view

built_in:show_progress_bar [2015/03/26 17:03] (current)
madlyr created
Line 1: Line 1:
 +===== ShowProgressBar =====
  
 +====Description====
 +
 +The **ShowProgressBar** method shows a popup progress window with a spinning animation and message **text** with percentage progress shown in **percent** parameter.
 + 
 +This window will remain visible until [[built_in:​hide_progress_bar|app.HideProgressBar()]] is called.
 +
 +<​code>​ app.ShowProgressBar( text, percent );</​code>​
 +
 +See also: [[built_in:​hide_progress_bar|HideProgressBar]],​ [[built_in:​update_progress_bar|UpdateProgressBar]]
 +
 +----
 +
 +====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/show_progress_bar.txt ยท Last modified: 2015/03/26 17:03 by madlyr