A control panel in Igor Pro
NewPanel opens a window that holds controls instead of data.
Function MakePanel()
DoWindow/K AnalysisPanel
NewPanel/N=AnalysisPanel/K=1/W=(100, 100, 420, 320)
SetDrawLayer UserBack
SetDrawEnv fsize=13, fstyle=1
DrawText 16, 28, "Trace analysis"
ModifyPanel cbRGB=(60000, 60000, 60000), fixedSize=1
End
How it works
/W=(left, top, right, bottom)is in points, from the screen corner./K=1lets the user close it without being asked.- Kill the old one first or a second panel appears beside it.
Keywords and builtins used here
DoWindowDrawTextEndFunctionModifyPanelNewPanelSetDrawEnvSetDrawLayer
The run, in numbers
- Lines
- 10
- Characters to type
- 242
- Tokens
- 56
- Three-star pace
- 80 tpm
At the three-star pace of 80 tokens a minute, this run takes about 42 seconds.
Step 1 of 3 in A panel, step 1 of 18 in Panels & GUI.