Skip to main content
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.
Configure formatted HTML textPascalC++
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;

void __fastcall TForm1::ConfigureHTMLText()
{
  TMSFNCHTMLText1->Text = "<b>Status</b><br><font color=\"#1BADF8\">Connected</font>";
  TMSFNCHTMLText1->DisplayHTML = true;
  TMSFNCHTMLText1->WordWrapping = true;
  TMSFNCHTMLText1->HorizontalTextAlign = gtaLeading;
  TMSFNCHTMLText1->VerticalTextAlign = gtaCenter;
}

Next steps