Delphi TRichEdit 设置背景形状为圆角矩形
我的问题是将背景形状设置为圆角矩形之类的东西。事实上,当您在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来你想要做什么我不相信 TRichEdit 的当前实现能够...该控件是 Windows Rich Edit 控件的包装器,并且你只能执行编程到该控件中的操作,或者允许执行的操作。
另一种选择是使用 Delphi 富编辑替代方案之一,例如 TRichView 或 WPTools,两者都是完整的富编辑器,带有源代码,您可以对其进行增强以满足您的要求。实际上,随着时间的推移,我在各种项目中都使用了这两种方法,作为 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.