trichview.support
Re: DbRichViewEdit (another question) |
Author |
Message |
Sergey Tkachenko |
Posted: 09/11/2002 10:24:04 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. > > I have another problem in another part of my application. I want to use > a TDbRichViewEdit in a TDbMemo way: Only text (without any format) in a > Field (BLOB). > > There is a way to set the properties for storage plain text? (I would > like to can see the texts in TDbMemo too, only text). > > My application is using a global TRVStyle component (with only one > ParaStyle and only one TextStyle), this is because i'm saving all the > styles in each document. > > For this field (the plain text), must i use the same TRVStyle? I'm not > capable of saving and visualizing plain text. > > Any idea will be good. Sorry form my english. > Tavo. > |
Powered by ABC Amber Outlook Express Converter