Hello everybody,
I'm trying to port an ancient source code from Delphi to Free Pascal.
This app is based on a RichEdit component. Since there isn't a 1:1 implementeation of RichEdit in FP, I'm using RichMemo.
Well, I'm having some problem opening rtf files: when I load the file and call LoadRichText, nothing is displayed (I don't get any error either).
So, I decided to download the official RichMemo examples (located here:https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/richmemo/samples/), and I tried to compile "testsimple". I tried to open the example rtf file, and... nothing is displayed here too!
So, my guess is that there is a bug in the current implementation of RichMemo, at least on Linux.
Furthermore, I've done some tests, and I've found that:
mRichMemo.Text:='Test' // This actually output Test to the RichMemo component
m.RichMemo.Rtf:= 'Test' // Nothing is displayed in the RichMemo component
More details:
My OS: Linux (Arch)
Latest version of Lazarus (2.0.2) and latest version of FPC (3.0.4)
RichMemo package downloaded from the Online Package Manager.
UPDATE:
I tried the same code on Windows 10 and it is working as expected (I can load rtf files, and rtf text is displayed correcly).
So I belive this is a problem of the linux version of RichMemo, and maybe OSX version too.
Is there anything I can do to report this issue and help to fix it?
Thanks a lot!