Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: Graphics--ProgressBar in GUIKit

  • To: mathgroup at smc.vnet.net
  • Subject: [mg66628] Re: Graphics--ProgressBar in GUIKit
  • From: "Ray Koopman" <koopman at sfu.ca>
  • Date: Wed, 24 May 2006 04:03:43 -0400 (EDT)
  • References: <e4tdq8$9n1$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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