开发者

Delphi TRichEdit Set background shape as rounded edge rectangle

开发者 https://www.devze.com 2022-12-22 07:43 出处:网络
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, no开

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, no开发者_如何学编程t rounded edge. I would like to put some sample image but I don't know how.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号