Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Oct : How to insert a drawing object (shape) into a TRichEdit?
| Subject: | How to insert a drawing object (shape) into a TRichEdit? |
| Posted by: | "Andrew Fiddian-Green" (..@dd) |
| Date: | Sat, 27 Oct 2007 02:13:17 |
Is there any way to stream a drawing object {\shp ...} tag (such as a text
box) into a TRichEdit control?
I am not sure if TRichEdit controls support {\shp ...} tags. But actually I
want to create an output document as a .rtf file on disk. So a kludgey way
would be to insert a "marker" in the TRichEdit, save the TRichEdit to a
string stream, then search & replace the marker with a {\shp ...} tag, and
finally save the modified string stream to disk.
But the above sounds like a really tedious and messy way, so I would
appreciate any suggestions.
Regards,
AndrewFG