Closed limelect closed 4 years ago
Hi @limelect
This property was removed in version 2.1 (now there is a TStrings property called "Lines"):
07/30/2020 (Version 2.1)
Changed Lines (Integer) property name to LineCount. :warning:
:exclamation: Component property change. Risk of data loss! |
---|
In order to keep TDzHTMLText Text string property content of your projects, you'll need to manually change property on DFM file, before opening projects in Delphi. Open the DFM files (using a text editor) that contains TDzHTMLText objects and replace as in the example:
object DzHTMLText1: TDzHTMLText
//FROM:
Text = 'Line 1'#13#10'Line 2'#13#10'Line 3'
//TO:
Lines.Strings = (
'Line 1'#13#10'Line 2'#13#10'Line 3')
end
If you want to keep old Text property, please download the older version here: TDzHTMLText v2.0
I do not understand. I have both HTMLText and the message (dam) updated to the new packages. I did not update? Maybe you did not update the demo? what is going on?
I reviewed all demos (Dam and DzHTMLText) and they all updated and opening/running.
Can you post some screenshot? Are you using Delphi or Lazarus?
Thanks.
The error persists. Using D10.2.3 but it has nothing to do with Delphi.
Ok, I put in the option the source files link and it works. Now I have to find why.
Ok, I got it.
Probably the problem is because the compiled .dcu files that Delphi are reading is outdated. When you are compiling the package, the .dcu files are generated in specific directory. So, when you are running any application, according to the library paths, these files might be reading from some other folder (outdated).
No, I am a professional since Delphi #1 But now I have a different scenario All dcu res and dfm of the last compile in one place. Unless I put the directory source link in the option I get the above error.
Let me just point that before the update I did not have so much trouble with your component
And the result you can see on the buttons
It seems something about Language Resource file (Dam).
About a month ago, I have changed Encoding of resource file because was not supporting some Languages (Unicode).
It's strange because I'm testing here in different Delphi versions and everything seems to be fine.
If you are downloading components sources directly from Git commands, maybe Git is not recognizing file Encoding changes. If you are downloading directly from RAW mode, that is the problem at all. If you are downloading .zip file, then it's really strange behavior.
I'll suggest you to DELETE these files:
And then, download them from .ZIP, to keep correct file encoding.
I have tested here creating a new package and including all source in a sub-directory (just like you have there).
And I tried to use Library Path to .dcu files (/Win32/Release), and also using Library Path directly to Source files.
In all of these cases, everything worked normally.
What I have is a directory WITHOUT THE SOURCES!!! only All dcu res and dfm of the last compile in one place. Only if I link to sources then it is OK.
Let me explain. in order not to have a lot of explorer links to directories I made a DCU directory where I place ALL components dcu dfm and res without the source. Only if there is a problem with a component i use the source in the project. When i update I just copy the new files (dcu res dfm) to that directory.
Funny as it sounds I copied the third time the dcu dfm and res and now it is OK Sorry.
One thing plz needed Extensive HELP ON DAM
OK. About Dam help, there is a lot of information in GitHub Readme. I'm trying to increase this readme whenever I can. If you have any questions, please open an Issue, so I can include it in the help. Best regards.
LbMsg: TDzHTMLText; No text in the new component