如何在Delphi 2007中使用最新的Richedit? [英] How do I use the latest Richedit with Delphi 2007?

查看:82
本文介绍了如何在Delphi 2007中使用最新的Richedit?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果在表单上放置TRichedit,则无法在控件中粘贴RTF和图像.据我了解,这是由于Delphi 2007使用了旧版本的Richedit控件.有没有简单的方法可以在Delphi 2007的窗体上使用最新的Richedit控件?

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?

推荐答案

以下文章介绍了如何在Delphi 2010中执行此操作,该过程与Delphi 2007类似:

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

在D2010中使用Richedit 4.1 1

1:上面的链接自2019年初以来一直无效,但是有一个

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

要点是复制VCL的 ComCtrl.pas 源文件,对其进行修改,以使 TRichEdit 加载最新的RichEdit DLL并指定最新的RichEdit控件类名称,然后可以将修改后的文件添加到您的项目中.

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.

这篇关于如何在Delphi 2007中使用最新的Richedit?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆