Table of Contents

Getting started with TMS FNC Scroll Bar

Prerequisites

  • TMS FNC Core installed and the runtime package added to the project.

Add the control

  1. Drop TTMSFNCScrollBar from the TMS FNC UI palette page onto a form.
  2. Set Kind to sbHorizontal or sbVertical (default).
  3. Set Min, Max, and PageSize to match the content being scrolled.

React to scroll changes

procedure TForm1.ScrollBar1ValueChanged(Sender: TObject; AValue: Double);
begin
  // AValue is the new scroll position
  MyScrollablePanel.ScrollTop := Round(AValue);
end;

Drive a scrollbar programmatically

ScrollBar1.Min := 0;
ScrollBar1.Max := 1000;
ScrollBar1.PageSize := 100;
ScrollBar1.Value := 0;

Next steps

  • Guides — appearance customisation, keyboard support, binding patterns.
  • API reference — full class reference.