Documentation of ScriptUI window.update()?
Does anyone know if this function is documented? I'm trying to implement a progress bar similar to the one Marc Autret supplies here: Re: Type of window for progress bars?
In general it is awesome and works well. The one problem I have is that I want to be able to change a statictext label as the progress bar moves along. When I do this, the statictext loses its centered justification. The only thing I've found that is even close to helpful is that when I apply the mysterious .update() function, the label will rejustify itself -- but only for a second. I thought if I could read about the nuts and bolts of what this does, I might be able to work out a solution.
It's a minor aesthetic thing, but I would really like to understand it.
My hit function, where the problem occurs:
this.hit = function(msg) {
st.text = msg || st.text;
w.update();\\Causes the window to flicker; you can tell that the text is justifying to center and then moving back to the left.
++pb.value;
};
