digao-dalpiaz / DzHTMLText

Delphi and Lazarus HTML Label component
MIT License
194 stars 54 forks source link

No text properties LbMsg: TDzHTMLText; #30

Closed limelect closed 4 years ago

limelect commented 4 years ago

LbMsg: TDzHTMLText; No text in the new component

digao-dalpiaz commented 4 years ago

Hi @limelect

This property was removed in version 2.1 (now there is a TStrings property called "Lines"):

limelect commented 4 years ago

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?

digao-dalpiaz commented 4 years ago

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.

limelect commented 4 years ago

The error persists. Using D10.2.3 but it has nothing to do with Delphi. Screenshot - 27_10_2020 , 22_10_36 Screenshot - 27_10_2020 , 22_11_43 Screenshot - 27_10_2020 , 22_12_00 Screenshot - 27_10_2020 , 22_12_23

  1. Downloaded again Dam and TDzHTMLText . 3'd time.
  2. move sources to directories. (I sent you my DPK in ZIP).
  3. Uninstall components.
    1. Build and compile
  4. Install again components
  5. Using large mes demo
limelect commented 4 years ago

Ok, I put in the option the source files link and it works. Now I have to find why.

digao-dalpiaz commented 4 years ago

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).

limelect commented 4 years ago

No, I am a professional since Delphi #1 But now I Screenshot - 27_10_2020 , 23_57_42 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

limelect commented 4 years ago

Screenshot - 28_10_2020 , 00_03_41 And the result you can see on the buttons

digao-dalpiaz commented 4 years ago

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.

digao-dalpiaz commented 4 years ago

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.

limelect commented 4 years ago

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.

limelect commented 4 years ago

Funny as it sounds I copied the third time the dcu dfm and res and now it is OK Sorry.

limelect commented 4 years ago

One thing plz needed Extensive HELP ON DAM

digao-dalpiaz commented 4 years ago

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.