Getting started with TMS FNC Widget LED Scope
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
TTMSFNCWidgetLEDScopefrom the TMS FNC Dashboard palette page onto a form. - Open the
Channelscollection in the Object Inspector and add one channel per bar. - For each channel, set
Steps(segments in the bar) andValue(segments lit from the bottom).
The minimal scope — a set of channels, each with its own step count and lit value:
procedure TForm1.SetupLEDScope;
var
I: Integer;
Channel: TTMSFNCWidgetLEDScopeChannel;
begin
FScope := TTMSFNCWidgetLEDScope.Create(Self);
FScope.Parent := Self;
FScope.SetBounds(20, 20, 420, 300);
// Replace the design-time sample channels with our own.
FScope.Channels.BeginUpdate;
try
FScope.Channels.Clear;
for I := 0 to 11 do
begin
Channel := FScope.Channels.Add;
Channel.Steps := 24; // 24 stacked LED segments per bar
Channel.Value := 4 + (I mod 20); // number of lit segments, counted from the bottom
end;
finally
FScope.Channels.EndUpdate;
end;
end;
Next steps
- Guides — channel values, gradients, the stroke, and peak markers.
- API reference — full class reference.