MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Graphics--ProgressBar in GUIKit


photonub at prodigy.net wrote:
> Hi All,
>
> I have created a GUI which runs a rather time-consuming algorithm.  I have added a ProgressBar to my GUI, which should update at various points in the algorithm.  I am calling the ProgressBar from within the Script that runs the algorithm.
>
> While the algorithm is running, I am trying to update the ProgressBar 4 times (i.e. widgetName@SetPropertyValue[{"bar","value"}, 25];).
>
> The problem I am having is that the ProgressBar only displays the final "SetPropertyValue[]" in the script.  I have read that Script's are "HoldAllComplete".  Could this be what is causing the problem?
>
> If so (or if not), does anyone have any idea how I may solve this problem?
>
> Thanks,
>
> Bob
>
> Link to the forum page for this post:
> http://www.mathematica-users.org/webMathematica/wiki/wiki.jsp?pageName=Special:Forum_ViewTopic&pid=10537#p10537
> Posted through http://www.mathematica-users.org [[postId=10537]]

Why not use the system status line instead?

ShowStatus[s_String] := LinkWrite[$ParentLink, SetNotebookStatusLine[
                        FrontEnd`EvaluationNotebook[], s ]]

will display a long enough string to pass useful progress information.


  • Prev by Date: Re: How to write formatted number into a file
  • Next by Date: Re: Interval[{a,b}]-Interval[{a,b}] = 0?
  • Previous by thread: Graphics--ProgressBar in GUIKit
  • Next by thread: Re: Graphics--ProgressBar in GUIKit