Dam
Delphi and Lazarus Message Dialogs with Formatted Text
Install / Use
/learn @digao-dalpiaz/DamREADME
:newspaper: Digao Dalpiaz News on Telegram

Dam
Delphi and Lazarus Message Dialogs with Formatted Text

- What's New
- Introduction
- Screenshots
- How to install
- Supported Languages
- How to use
- Message parameters
- TDam properties
- TDam events
- TDamMsg properties
- Escaping HTML tags and parameters
- Quick Messages
- Raising exceptions
- How to change Language file
- Limitations
- Delphi versions below XE8 remark
- History
What's New
-
01/24/2025 (Version 6.8)
- Include Farsi language support
-
03/25/2024 (Version 6.7) (Minimum DzHTMLText version: 6.3)
- Fix message icon scaling when showing message (VCL)
- Fix Lazarus message scaling
- Fix Delphi message editor text preview scaling
- Calculate buttons width after DPI scaling
-
03/16/2024 (Version 6.6)
- Fix Delphi 10 Seattle compiling (ScaleForCurrentDPI only available in Delphi 10.1 Berlin)
-
03/10/2024 (Version 6.5)
- New ButtonsFont property (and ButtonsFontColor when FMX).
- Fixed adjusting DPI when first display dialog in VCL.
-
02/23/2024 (Version 6.4)
- Fixed included files path in Design packages (the files was referencing "Design" folder twice).
-
02/22/2024 (Version 6.3)
- Fixed Lazarus Design Package compiling.
-
02/20/2024 (Version 6.2)
- 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 6.1) (Minimum DzHTMLText version: 5.2)
- Fixed getting message text when using CTRL+C
-
01/12/2024 (Version 6.0) (Minimum DzHTMLText version: 5.1)
- FMX support!!!
- DPI Scaling improvements
- Message form re-scaling when moving around different monitors
- Windows messages icons scaling supporting
- New Component DCR icons (transparency)
- New HideIcon property
- Linux supporting (Using Lazarus) - new internal resource icons for message dialogs - same as using in FMX
- Fixed Message background when using Themes in VCL (now text is transparent)
WARNING!!! Please completely uninstall the previous version by deleting the previous Dam Component folder, because many files have changed their names and locations.
-
12/11/2023 (Version 5.2)
- Fixed Lazarus compiling (StyleElements)
-
07/29/2023 (Version 5.1)
- Fix Russian translation (Issue #36)
-
04/11/2023 (Version 5.0) (Minimum DzHTMLText version: 4.0)
- DPI Scaling supporting (please update DzHTMLText component)
- Subfolder supporting in
DamUnitNameproperty
-
09/12/2021 (Version 4.16)
- Delphi 11 auto-install support.
-
07/24/2021 (Version 4.15)
- Fixed incorrect custom theme behavior in Message Preview and Message Wizard dialogs when in Delphi 10.4 IDE.
-
06/13/2021 (Version 4.14)
- Fixed CTRL+C action in message dialog to copy message as plain text. It was copying the HTML syntax. Need to update DzHTMLText!
-
03/21/2021 (Version 4.13)
- Full VCL custom theme supporting (changes made in DzHTMLText).
-
03/14/2021 (Version 4.12)
- Included Turkish language support.
-
03/13/2021 (Version 4.11)
- Supporting message buttons caption with any length, automatically increasing button width.
- Removed CompInstall.exe from component sources due to AV false positive warning (now you can get it directly from CompInstall repository).
-
03/05/2021 (Version 4.10)
- New OnLinkClick event.
-
02/10/2021 (Version 4.9)
- Compatibility with new DzHTMLText component version (now DzHTMLText supports FMX).
- Removed Delphi XE2 from the list of environments as it was never possible to compile in this version.
- Fixed Delphi XE3 compatibility.
-
12/18/2020 (Version 4.8)
- Updated Component Installer app (Fixed call to rsvars.bat when Delphi is installed in a path containing spaces characters).
-
11/27/2020 (Version 4.7)
- Included EDam exception shortcut in Dam file generated unit (When using Build button in Dam Messages Manager form).
-
11/11/2020 (Version 4.6)
- New EDam exception class (read Raising exceptions).
- Implemented HTML tags escape and parameter/exception constant bypass (read Escaping HTML tags and parameters).
-
10/31/2020 (Version 4.5)
- Included Delphi 10.4 auto-install support.
-
10/27/2020 (Version 4.4)
- Fixed previous Delphi versions (at least on XE2, XE3, XE4 and XE5) package tag. It was causing package compilation error.
- Fixed the use of System.ImageList unit because it's only available from XE8.
- Fixed .ToString conversion because is not available in some Delphi versions.
-
10/26/2020 (Version 4.3) (Minimum DzHTMLText version: 2.6)
- Changed TDzHTMLText version dependency check to use new internal version control.
-
10/26/2020 (Version 4.2)
- Updated CompInstall to version 2.0 (now supports GitHub auto-update)
-
10/18/2020 (Version 4.1) (Minimum DzHTMLText version: 2.04)
- Implemented DzHTMLText version internal check.
-
10/14/2020 (Version 4.0)
- Lazarus support. :smile:
Remarks:
- The TRichEdit control in Message Editor Dialog was replaced by a TMemo, because in non Windows systems this control doesn't exist. So the syntax highlight under HTML tags are also no longer displayed in the editor.
- At this time, the Cut, Copy and Paste commands for messages in the Lazarus IDE environment are not yet available.
-
09/24/2020
- Fixed message background color and message dialog width x message width when using application VCL Theme Styles (issue #17).
-
08/11/2020
- Changed DialogPosition=dpActiveFormCenter to always get absolute window rect. When active window is MDI child, then message dialog will be centered by active form absolute screen position.
-
08/07/2020
- Fixed dialog position when ActiveForm is MDI Child and using DialogPosition=dpActiveFormCenter (issue #16).
-
08/03/2020
- Included HelpContext and HelpKeyword support in TDamMsg.
-
07/30/2020
- Internal compatibility with TDzHTMLText change (TStrings text property). Please, update TDzHTMLText component! :warning:
-
07/21/2020
- Included Dutch language support.
-
05/25/2020
- Implemented ImageList support, using DzHTMLText images support (use tag
<img:nnn>). It is necessary to update the TDzHTMLText component. :warning:
- Implemented ImageList support, using DzHTMLText images support (use tag
-
05/03/2020
- Updated CompInstall to version 1.2
-
05/02/2020
- New global function
DamParamsto fill parameters when using Dam Message methods. This is needed for Delphi versions below XE8, because didn't have dynamic array as type support. - Removed uses
System.ImageListfrom DamList unit (design-time package), because is not supported by Delphi versions below XE8. - Removed
AutoWidthproperty in TDam. Now there is a new propertyFixedWidthin TDamMsg component, so you can specify custom width by message. The component will keep auto-width internal function if FixedWidth is zero (default value). - Fixed message window width bug behavior because of DzHTMLText updates.
- Fixed message text incorrect center alignment position when form at minimum size (issue #5).
- Changed
CenterButtonsproperty to default false, because new Windows dialogs style have buttons aligned at right.
- New global function
-
04/26/2020
- Now you can include images in the message text area, by using new
<imgres:{resource_name}>tag. Just add PNG image to the application resources and use the tag to reference them into the message. This implementation is in DzHTMLText component, used by Dam. You just need to update your DzHTMLText component and this feature will be available. Please read the DzHTMLText Image Tag section to more info. Important: images won't be visible at design-time.
- Now you can include images in the message text area, by using new
-
04/19/2020
- Renamed Dam_Resource.rc to Dam_Resource.rc_ because .rc extension is not considered as code information. If using GitHub default Delphi .gitignore file, for example, then .rc will be ignored. Another example: backuping data with .rc extension ignored.
-
10/07/2019
- Include OnShowMessage event.
-
10/06/2019
- Include Messages Find function: Now when you are designing messages, in the Dam message container, there is a new button "Find". If you have a lot of messages, you can find them by message name and/or message text.
- Include DialogBorder property.
- Fix Message Editor form to use background color property in the preview area.
- Adjust Message Dialog to minimum of Width=300px and Height=100px.
- Adjust Message Dialog Max Width to be 75% of Monitor Width.
-
10/05/2019
- Include DialogPosition
Related Skills
node-connect
337.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.2kCreate 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
337.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.2kCommit, push, and open a PR
