trichview.com

trichview.support




Re: DbRichViewEdit (another question)


Return to index


Author

Message

Tavo

Posted: 09/11/2002 17:44:47


Perfect! Thanks Sergey


Sergey Tkachenko wrote:

> First, you need to set dbeditor.FieldFormat to rvdbText.

> All documents will be saved in db as a text, but this option does not

> prevent adding formatted text and pictures in editor.

> How to force plain-text:

> 1) Right-click editor in Delphi, choose "Setting" in the context menu,

> select "Use a predefined set of styles"

> 2) In OnPaste event, write

>   if Clipboard.HasFormat(CF_TEXT) then

>     dbeditor.PasteText;

>   DoDefault := False;

> 3) Do not use operations that will add new styles (such as RichViewActions)

> for this editor.

>

> This editor can share RVStyle object with others, or not.





Powered by ABC Amber Outlook Express Converter