Table of Contents

Getting Started with TMS FNC HTML Text

Prerequisites

  • Delphi with TMS FNC UI Pack installed.
  • A new or existing VCL, FMX, or WEB application.

Steps

  1. Drop a TTMSFNCHTMLText onto a form.
  2. Set Text to the HTML-capable text you want to display.
  3. Enable WordWrapping when the text can span multiple lines.
  4. Set HorizontalTextAlign and VerticalTextAlign to place the rendered text inside the control.
  5. Assign a BitmapContainer when the text uses inline image references.
procedure TForm1.ConfigureHTMLText;
begin
  TMSFNCHTMLText1.Text := '<b>Status</b><br><font color="#1BADF8">Connected</font>';
  TMSFNCHTMLText1.DisplayHTML := True;
  TMSFNCHTMLText1.WordWrapping := True;
  TMSFNCHTMLText1.HorizontalTextAlign := gtaLeading;
  TMSFNCHTMLText1.VerticalTextAlign := gtaCenter;
end;

Next steps