Getting Started with TMS FNC Badge
Use TTMSFNCBadge to attach a small status, count, or alert marker to another control.
Prerequisites
- Delphi with TMS FNC UI Pack installed.
- A new or existing VCL, FMX, or WEB application.
Attach a Badge
- Drop a
TTMSFNCBadgeonto a form. - Assign
Controlto the control the badge should follow. - Set
Text,HorizontalPosition, andVerticalPosition. - Call
ShowBadgeorHideBadgeas the state changes.
procedure TForm1.ConfigureBadge;
begin
TMSFNCBadge1.Control := TMSFNCButton1;
TMSFNCBadge1.Text := '3';
TMSFNCBadge1.AutoSize := True;
TMSFNCBadge1.HorizontalPosition := bhpRight;
TMSFNCBadge1.VerticalPosition := bvpTop;
TMSFNCBadge1.ShowBadge;
end;