trichview.support
Re: possible bug, Search/Replace question |
Author |
Message |
Sergey Tkachenko |
Posted: 04/30/2002 16:03:42 Yes, rvoAutoCopy*** works only when copying to the Clipboard. Other word processors can copy other data - plain text or RTF which can be pasted. By default, RTF has higher priority than text: if the Clipboard contains both RTF and text, RTF will be pasted. If you want to control format for pasting, use OnPaste event - paste data in desired format and set DoDefault = False. PS: Non-existing current text style? It's not a normal situation. > I believe this may help. Even if you do try to paste as normal text, RVEdit > will assume the current rvstyle and apply it. I wrote a procedure for the > Ctrl+V to detect existing rvstyle. If the style is none existent, a new > style will be added to rvstyle. To force normal text, select the normal-text > style in rvstyle and apply it then use rvedit.InsertText(YourText, False). > This will insert normal text. > Do not trust the rvoAutoCopyText if you also decide to paste from other word > processor or the character map. > Regards. > Henry > > > > > Menu shortcut was indeed the reason for different behavior of Ctrl+V and > > Shift+Insert. > > > > But I still believe that if: > > a) I define RichViewEdit.Options:=[rvoAutoCopyText]; > > b) In OnPaste event handler I have DoDefault := True; > > that the text should be pasted as the text and not as RTF or RVF when > using > > the Ctrl+V and Shift+Insert (This is the way I understand the help for > Paste > > procedure, but I could be wrong, of course). > > > > > |
Powered by ABC Amber Outlook Express Converter