UIProgressBar?

Next
 From:  mushycraft
6733.1 
Are there any examples out there on how to use UIProgressBar? And/or how to update the "Calculating..." display? I have a script that takes a long time to run.

thanks!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
6733.2 In reply to 6733.1 
Hi mushcraft,

> Are there any examples out there on how to use UIProgressBar?

You declare one like this:

code:
<moi:ProgressBar id="progressbar"/>


Then it has a .value property which can be a number from 0 to 100.


> And/or how to update the "Calculating..." display?

That's built into the geometry factory mechanism, it gets set automatically if an asynchronous geometry factory is taking a while to finish.

It should be possible for a script to show it too though, use this for showing it:

code:
var CalcDiv = moi.ui.sidePane.document.getElementById( 'Calculating' );
CalcDiv.style.display = 'block';


And for hiding it:

code:
var CalcDiv = moi.ui.sidePane.document.getElementById( 'Calculating' );
CalcDiv.style.display = 'none';


- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  mushycraft
6733.3 In reply to 6733.2 
Perfect, thanks!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All