Tips and Frequently Asked Questions
How to draw a custom tickmark at thumb position
To draw a custom tickmark at thumb position, drop a default TAdvTrackBar on the form and add following code:
procedure TForm2.AdvTrackBar1Change(Sender: TObject); begin AdvTrackBar1.Invalidate; end; procedure TForm2.AdvTrackBar1DrawTick(Sender: TObject; Canvas: TCanvas; Location: TPoint; Position: Integer; TickPos: TTickMark; var Length: Integer; var Color, TextColor: TColor; var Text: string; var DefaultDraw: Boolean); begin if Position = AdvTrackBar1.Position then begin DefaultDraw := false; Canvas.MoveTo(Location.X, Location.Y); Canvas.Pen.Color := cLRed; Canvas.Pen.Width := 3; Canvas.LineTo(Location.X, Location.Y + 10); Canvas.Pen.Width := 1; Canvas.Pen.Color := clBlack; end; end;
This will draw at thumb position a think red tickmark:
Pricing
Single Developer License
Small Team License
Site License
TMS VCL UI Pack
€ 375
€
150
yearly renewal
license for 1 developer
MOST POPULAR
BEST VALUE
All prices excl. VAT. Renewal price is subject to change and only valid up to 30 days after license has expired. After renewal period a discount price is offered to renew the license.
Free Trial
Note that the TMS VCL UI Pack replaces the TMS Component Pack. Both products can't be installed simultaneously. Therefore TMS Component Pack must first be uninstalled before installing the TMS VCL UI Pack