typestar

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

  1. /W=(left, top, right, bottom) is in points, from the screen corner.
  2. /K=1 lets the user close it without being asked.
  3. Kill the old one first or a second panel appears beside it.

Keywords and builtins used here

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.

Type this snippet

Step 1 of 3 in A panel, step 1 of 18 in Panels & GUI.

Next →