Showing a value back in Igor Pro
ValDisplay is read-only, and its value can be an expression that re-evaluates.
Function AddReadouts()
ValDisplay countDisp, pos={16, 310}, size={180, 16}
ValDisplay countDisp, title="Points", value=#"root:Settings:gCount"
ValDisplay progDisp, pos={16, 332}, size={180, 16}, title="Done"
ValDisplay progDisp, limits={0, 100, 0}, barmisc={0, 40}
ValDisplay progDisp, value=#"root:Settings:gProgress"
TitleBox statusBox, pos={16, 354}, size={280, 16}, frame=0
TitleBox statusBox, variable=root:Settings:gLastFile
End
How it works
value=#\"expr\"re-reads the expression whenever the panel updates.limitsplusbarmiscturns it into a small bar gauge.TitleBoxdoes the same job for text.
Keywords and builtins used here
EndFunctionTitleBoxValDisplayvariable
The run, in numbers
- Lines
- 11
- Characters to type
- 436
- Tokens
- 115
- Three-star pace
- 85 tpm
At the three-star pace of 85 tokens a minute, this run takes about 81 seconds.
Step 2 of 4 in Bigger controls, step 10 of 18 in Panels & GUI.