Page 1 of 1

Emulate "Paste Special" in MSWord?

Posted: Sat Jan 27, 2007 2:40 pm
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,

Posted: Sat Jan 27, 2007 4:34 pm
by Sergey Tkachenko
Create an action or menu item with this shortcut, and call RichViewEdit1.PasteText in its OnClick/OnExecute

Posted: Sat Jan 27, 2007 4:48 pm
by DickBryant
Thanks - didn't think of it as a 'shortcut' - was thinking of having to code the keystroke interception - this is MUCH easier!