Emulate "Paste Special" in MSWord?

General TRichView support forum. Please post your questions here
Post Reply
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

Emulate "Paste Special" in MSWord?

Post by DickBryant »

I'm using multiple RVE's and the user may want to copy and paste between them. MOST of the time I think the default behavior is appropriate - i.e. if the copied text is in a different style, the style is carried over into the pasted text in the second RVE.

However, I'd like to implement functionality where Ctrl-SHIFT-V pastes the text into the target "unformatted" - i.e. it will assume the style of the text existing just to the left of the insertion point. (At the moment, I've verified that Ctrl-SHIFT-V does the same thing that Ctrl-V does).

Can someone give me some help in implementing this extra functionality? Probably would be VERY useful for many users.

I've searched through all "paste" references on the forum and not found an answer for this.

Thanks in advance,
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Create an action or menu item with this shortcut, and call RichViewEdit1.PasteText in its OnClick/OnExecute
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

Post by DickBryant »

Thanks - didn't think of it as a 'shortcut' - was thinking of having to code the keystroke interception - this is MUCH easier!
Post Reply