Skip to reading
GUI: Knobs, Dials and Gauges

Place your first control

Edition 0.86.4.5

New 0.86.4.5 field guide. Rotary Value bindings use Raw JSON in this edition. Clock hands are independent; running-clock or geared behavior is authored separately. Examples can be built in an existing project; the optional workbench is part of the PCA3D source package.

Download PDFView illustrations

SETUP / GUI INSPECTOR

GUI Designer with the clock selected in the instruments GUI. The hierarchy shows which face you are editing.

1. Open GUI Designer and select the GUI that should contain the instrument. Choose Add Element and add Knob, Dial or Gauge. A new control starts at 150 × 150. Give it room on the canvas before adding labels.

2. Select the element in the hierarchy or on the canvas. Under General, give it an ID you can recognize later, such as radio. Two windows can contain a radio with the same ID. When an action asks for the GUI and element, enter both.

Open Type Settings → Edit rotary face, input and hands. Choose the 3 Preset first. Changing the preset loads its defaults into the open dialog, including its hand list. The preview updates as you edit.

Source table from Place your first control, page 2
Choose this presetUse it for
KnobA raised dial and a filled arc, such as a radio tuner.
Arc gauge / Needle gaugeAn amount shown by a filled scale or a pointer.
ClockThree hands, twelve divisions and a full turn.
Rotary phoneFinger holes, a fixed stop and a returning wheel.

Keep your edits#

Choose OK in Rotary control, save the project, then open Runtime Preview. Cancel discards the open dialog’s draft. If OK is unavailable, read the validation message at the top of the dialog.

Page 2 of 11Permalink
Go to page