How do I use the latest Richedit with Delphi 2007?

1.1k views Asked by At

If I drop a TRichedit on my form, I can't paste RTF with images in my control. From what I understand this is due to the fact that Delphi 2007 uses an old version of the Richedit control. Is there an easy way to use the latest Richedit control on a Form with Delphi 2007?

1

There are 1 answers

18
Remy Lebeau On BEST ANSWER

The following article explains how to do it in Delphi 2010, the procedure would be similar for Delphi 2007:

Using Richedit 4.1 with D2010 1

1: the above link has been dead since early 2019, but there is an archived copy on archive.org

The gist of it is to make a copy of the VCL's ComCtrl.pas source file, modify it to have TRichEdit load the latest RichEdit DLL and specify the latest RichEdit control class name, and then you can add the modified file to your project.