DzHTMLText
Delphi and Lazarus HTML Label component
Install / Use
/learn @digao-dalpiaz/DzHTMLTextREADME
:newspaper: Digao Dalpiaz News on Telegram
Brazilian Portuguese video. Please select automatic translations on YouTube video options.
DzHTMLText
Delphi and Lazarus HTML Label component
- What's New
- Component Description
- Available tags
- Installing
- Component Properties
- Events
- Procedures/Functions
- Link Reference Tag
- Spoiler Tag
- Link object
- Image Tag
- Div Tag
- Tab Tag
- Literal tag character
- Chinese/Japanese/Korean line break
- Auto Scaling
- Color Notation
- Formatted Message Dialog Component
- Donate
What's New
-
01/23/2026 (Version 6.13)
- Fix line break detection for Android platform.
-
01/17/2026 (Version 6.12)
- Add Justify align supporting.
- New FullWidth property.
-
11/22/2025 (Version 6.11)
- Fixed Delphi 10.3 and below compiling (TImageList.IsScaled only available in Delphi 10.4)
-
11/22/2025 (Version 6.10)
- Fixed Lazarus compiling (TImageList.IsScaled only available in Delphi)
-
08/16/2025 (Version 6.9)
- Fixed full VCL Themes support
- Fixed images scaling in VCL when using ImageList with Scaled=True
- Fixed internal builder order in VCL to avoid incorrect construction when loading form with scaling
-
03/15/2025 (Version 6.8)
- Right-to-left (RTL) text supporting.
- When using a Div without "keep properties" (default), now Horizontal Text Alignment get the same value as component pre-defined Horizontal Alignment.
-
01/26/2025 (Version 6.7)
- Fixed Lazarus compiling (GDI+ units)
-
11/14/2024 (Version 6.6)
- Use GDI painting from Windows API when using VCL + Windows to draw rounded div
- Fix access violation when DPI Scaling in VCL (early access to TForm.Monitor)
-
10/14/2024 (Version 6.5)
- New Corner Radius ("radius") property for Div tag
-
03/26/2024 (Version 6.4)
- Fix Delphi XE3 compiling (Design packages and FMX FillRect)
-
03/25/2024 (Version 6.3)
- VCL font scaling review (Height is calculated by default screen PPI)
-
03/24/2024 (Version 6.2)
- Better FMX design-time border (using the Delphi pattern).
- Keep Canvas properties state in FMX (font changes and other Canvas properties were retained and could affect the painting of other controls on the form)
-
02/26/2024 (Version 6.1)
- Opacity supporting in FMX environment.
-
02/23/2024 (Version 6.0)
- New Design packages (build all packages and install only design packages). The old packages were transformed into Runtime-only packages, so if you already had the component installed previously, you may receive an error message in Delphi saying that the package cannot be installed as it is Runtime-only. You can ignore this message, as the package will not be installed and will no longer be loaded at Designtime.
- New Syntax Errors list (right click on component in design mode and choose "Show Syntax Errors"). The component border will appear red when syntax errors.
- Fixed word bounds size calculation for some platforms in FMX environment, like Android. The component was using MeasureCanvas to calculate bounds before canvas becomes available. Some platforms return wrong size (smaller) when using generic MeasureCanvas. Now we are using original Canvas, building tokens when Canvas becomes available. This fix resolves the issue of characters cut in half at the end of the word.
- Fixed Tab margin on first line and Tab x Line Item x Paragraph Indent margin overload.
- Reintroduced
<FLOAT>tag (as obsolete tag).
-
02/20/2024 (Version 5.3)
- Reorganization of component folders (Please completely delete the previous component folder). WARNING! DCU output folder changed. Now output directory is
Lib\{Platform}\{Config}. Please review your Library Paths. - Auto-install now supports Delphi 12.
- Reorganization of component folders (Please completely delete the previous component folder). WARNING! DCU output folder changed. Now output directory is
-
01/21/2024 (Version 5.2)
- Fixed left margin after List tags (Unordered and Ordered lists).
- Reintroduced
<T>and<TF>tags. - New PlainText and GeneratePlainText properties (public) - removed HTMLToPlainText method.
-
01/12/2024 (Version 5.1)
- Improved VCL x FMX x HTML color notation. Please read Color Notation topic.
-
01/05/2024 (Version 5.0)
| :exclamation: Component breaking changes | |---------------------------------------------------------------------------------------| | Tags
<T>,<TF>and<FLOAT>have been removed | | Please use new tag<DIV>| | (<T>and<TF>reintroduced in version 5.2,<FLOAT>reintroduced in version 6.0) |- NEW COMPONENT ENGINE!!!
- Improved token processing performance
- FmxLinux supporting
- Refactoring Scaling in VCL
- Fixed Lazarus Scaling (Lazarus IDE stores Design DPI)
- New Div Tag (
<DIV>) - Removed Tab and Float Tags (
<T>,<TF>,<FLOAT>) - please use new Div tag - New Header Tag (
<H>) - New Custom Style Tag (
<STYLE>) - Font Style tags (Bold, Italic, Underline and Strikeout) now supports "turn off" parameter
- Spoiler tag now supports display already expanded
- Fixed Offset tag to not extend background color in the offset area
- Fixed Linux (in Lazarus) compilation (DEFAULT_DPI const)
- Removed DesignDPI property (WARNING!!! If you defined a value other than the default in this property, when opening the form, this value will be removed, but that's okay, because the design of forms in Delphi is always based on 96 pixels per inch)
- Linux auto scaling supporting on Lazarus
- Removed TFontPt class (now using TPixels for Font Size)
- Fixed supporting decimal values in all TPixels parameters in FMX
- Fixed decimal values in tags parameters to use "." as decimal separator in FMX environment (TPixels)
- Fixed Spoiler name as case-insensitive
- New ParagraphCount property (read-only)
- New LineHorzAlign property
- New ParagraphSpacing property
- Supporting spaces in tag parameters (auto trim)
- New AutoBreak property
- Supporting tag params using multiple lines
- Include space char automatically when using
<NBR>tag or AutoBreak disable, in text sequence between lines - TDHLinkRef.Text now is TStringBuilder
- Set Left Margin when using List Items (Ordered and Unordered lists) - align text when item has multiple lines
- Tag
<BR>now supports parameter to specify if a new paragraph or a continuous line - New Tag
<PI>- paragraph indent - New Transparent property for VCL
-
12/05/2023 (Version 4.4)
- Fixed Lazarus compilation (ScalingUtils directive).
-
12/04/2023 (Version 4.3)
- Fixed RetrieveMonitorPPI when using non DLL delayed platform (Lazarus). This caused an error when trying to use the component on Windows versions below 8.1, as it tried to load the SHCORE.DLL dll, even though it was not used.
-
06/19/2023 (Version 4.2)
- DPI Scaling improvements
- New DesignDPI property (only in VCL + Windows environment)
- Simplifyed VCL x FMX units (using INCLUDE directive)
- Included ScalingUtils to VCL package
- Removed GenUnit app
- New Component DCR icons (transparency)
- New alias for internal objects (TAnyRect, TAnyColor, TAnyPoint...) - avoid incorrect using in other units
- Fixed FMX background size problem when bounds are not integer values
-
04/26/2023 (Version 4.1)
- Fixed Delphi 10 Seattle compiling (conditional directive about GetDesignDpi)
-
04/11/2023 (Version 4.0)
- DPI Scaling supporting for VCL (Windows and Linux)
-
04/07/2023 (Version 3.11)
- New
<LINE>tag - New
<VALIGN>tag - New
<OFFSET>tag - Fixed MaxWidth to calc correct width size when using borders
- New
-
01/02/2022 (Version 3.10)
- Fixed canvas usage when component is loading in FMX environment using MeasureCanvas. This will avoid access violation in canvas when component is loading (Issue #65).
-
11/03/2021 (Version 3.9)
- Fixed to clear and renew selected link when rebuilding text contents, avoiding access violation when mouse stay at the same previous link (Issue #59).
-
09/12/2021 (Version 3.8)
- Delphi 11 auto-install support.
-
08/05/2021 (Version 3.7)
- Fixed access violation error when creating component on iOS (when canvas not present yet).
- Open link support for Mac and iOS.
-
06/13/2021 (Version 3.6)
- New HTMLToPlainText function, removing HTML tags and unescaping special HTML identifiers.
-
04/21/2021 (Version 3.5)
- Fixed
<LI>tag incorrect overlap painting when using multiple items in the same line of HTML code.
- Fixed
-
03/31/2021 (Version 3.4)
- New Borders property, allowing to define the text area margins.
-
03/21/2021
Related Skills
node-connect
336.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
336.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.9kCommit, push, and open a PR

