Page 1 of 1

Disable image and text font

Posted: Thu Jun 06, 2013 2:06 pm
by retwas
Hi,

I have TRichViewEdit who must be used like a TMemo, only text.

Did you know wha I must change for get this result ? no font bold, italic, image, .. even by copy/paste ...

Wha I must change ? I look in TRichView - Options but I didn't see anything..

Thanks

Posted: Thu Jun 06, 2013 3:18 pm
by Sergey Tkachenko

Posted: Fri Jun 07, 2013 1:27 pm
by retwas
Thanks, it works with

Code: Select all

rveDocument.AcceptPasteFormats := [rvddText];
but when I InsertRVFFromStream I keep picture and font :(

How can I load RVF with only text properties ?

Posted: Fri Jun 07, 2013 3:08 pm
by Sergey Tkachenko
I assumed that you disable all commands for inserting RVF and RTF.

The simplest solution is having an additional hidden TRichView. You insert RVF/RTF in this hidden TRichView, then get text from it (for example, using GetAllText from RVGetText/RVGetTextW unit) and add this text in the main TRichView.