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
- Drop a
TTMSFNCHTMLText onto a form.
- Set
Text to the HTML-capable text you want to display.
- Enable
WordWrapping when the text can span multiple lines.
- Set
HorizontalTextAlign and VerticalTextAlign to place the rendered text inside the control.
- 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