trichedit

Using TRichEdit at runtime without defining a parent

蓝咒 提交于 2019-11-26 15:56:57
问题 I need to use a TRichEdit at runtime to perform the rtf to text conversion as discussed here. I succeded in doing this but I had to set a dummy form as parent if not I cannot populate the TRichedit.Lines. (Error: parent is missing). I paste my funciton below, can anyone suggest a way to avoid to define a parent? Can you also comment on this and tell me if you find a more performant idea? Note: I need a string, not TStrings as output, this is why it has been designed like this. function