UIProgressBar?

 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