Disable image and text font

General TRichView support forum. Please post your questions here
Post Reply
retwas
Posts: 39
Joined: Tue May 21, 2013 1:41 pm

Disable image and text font

Post 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
retwas
Posts: 39
Joined: Tue May 21, 2013 1:41 pm

Post 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 ?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply