Table of Contents

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

  1. Drop TTMSFNCWidgetGauge from the TMS FNC Dashboard palette page onto a form.
  2. Set MinimumValue and MaximumValue to define the measurement range.
  3. Set Value to position the needle, and DialText to 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.