Delphi TRichEdit 设置背景形状为圆角矩形

发布于 2024-08-23 22:32:58 字数 98 浏览 3 评论 0原文

我的问题是将背景形状设置为圆角矩形之类的东西。事实上,当您在 TRichedit 上为文本添加背景颜色时,背景形状将是矩形,而不是圆角边缘。我想放置一些示例图像,但我不知道如何放置。

My problem is to set the background shape to something like rounded edge rectangle. The fact that when you put background color on the text on TRichedit, the background shape would be a rectangle, not rounded edge. I would like to put some sample image but I don't know how.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甜尕妞 2024-08-30 22:32:58

听起来你想要做什么我不相信 TRichEdit 的当前实现能够...该控件是 Windows Rich Edit 控件的包装器,并且你只能执行编程到该控件中的操作,或者允许执行的操作。

另一种选择是使用 Delphi 富编辑替代方案之一,例如 TRichViewWPTools,两者都是完整的富编辑器,带有源代码,您可以对其进行增强以满足您的要求。实际上,随着时间的推移,我在各种项目中都使用了这两种方法,作为 TRichEdit 的更强大的替代品,并且会推荐其中一种。

What it sounds like your trying to do I do not believe the current implementation of TRichEdit is capable of...that control is a wrapper over the windows rich edit control, and you can only do what was programmed into that control, or allowed for.

Another option would be to use one of the Delphi rich edit alternatives such as TRichView or WPTools, both of which are complete rich editors with source code that you CAN enhance to meet your request. I have actually used both in various projects over time as a more powerful replacement for TRichEdit, and would recommend either.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文