Getting started with TMS FNC Widget Gauge
Prerequisites
- TMS FNC Core installed and the runtime package added to the project.
- TMS FNC Dashboard Pack design-time package registered in the IDE.
Add the control
- Drop
TTMSFNCWidgetGaugefrom the TMS FNC Dashboard palette page onto a form. - Set
MinimumValueandMaximumValueto define the measurement range. - Set
Valueto position the needle, andDialTextto label the dial.
The minimal gauge — range, value, and a dial label:
procedure TForm1.SetupGauge;
begin
FGauge := TTMSFNCWidgetGauge.Create(Self);
FGauge.Parent := Self;
FGauge.SetBounds(20, 20, 260, 260);
FGauge.MinimumValue := -40; // scale lower bound
FGauge.MaximumValue := 60; // scale upper bound
FGauge.Value := 20; // needle position within the range
FGauge.DialText := 'Temperature';
end;
Next steps
- Guides — the scale and rings, plus colored sections and extra needles.
- API reference — full class reference.