Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TAdvSmoothTrackBar
How to customize the text of the value inside the TAdvSmoothTrackBar

You can use the OnDrawNumber event that has a String parameter that can be changed. Following code:
procedure TForm1.AdvSmoothTrackBar1DrawNumber(Sender: TObject; value:
Double;  var s: string; var AllowDrawText: Boolean; var TickMarkColorLeft, TickMarkColorRight: TColor; var AllowDrawTickMarkLeft,
  AllowDrawTickMarkRight: Boolean);
begin
  s := 'test';
end;
Results in: