Paste target wrong

General TRichView support forum. Please post your questions here
Post Reply
wisz
Posts: 4
Joined: Wed Oct 22, 2008 10:27 am

Paste target wrong

Post by wisz »

Clerk hello:

In TRichViewEdit, call up the Find dialog box and in the keyword input box press Ctrl + V, the content is pasted to TRichViewEdit.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Paste target wrong

Post by Sergey Tkachenko »

It's not because of the editor, but because of an action, menu item or toolbar button having "Ctrl + V" shortcut.
When you press Ctrl+V, it is handled by this action/menu/button.

Unfortunately, I do not know how to solve this problem.
If you use TrvActionPaste, it is smart enough to handle not only TRichViewEdit, but also TEdit, TComboBox and TMemo.
So, if you create your own Find dialog in Delphi, Ctrl+V will work correctly.
But I do not know how to do it for the standard Windows dialogs.

Workarounds for users:
- use Shift+Insert
- right click the editor in the Find dialog and choose "Paste" from the menu.

You can also consider removing shortcut for Copy, Paste and Cut actions. In this case, the editor itself will process Ctrl+C, Ctrl+V and Ctrl+X. It will do it only when it is focused.
However, if you use RichViewActions, this solution has disadvantages, because Paste and Cut actions provide additional features:
- if RVAControlPanel.HTMLComponent is assigned, they allow pasting in HTML format
- if RVAControlPanel.DownloadInterface is assigned, they allow downloading external images referred from HTML and RTF files.
wisz
Posts: 4
Joined: Wed Oct 22, 2008 10:27 am

Re: Paste target wrong

Post by wisz »

OK, I see. Thank you for your answer. :D
Post Reply