Hello Sergey
I would like to format a text from clipboard from another document according to the formatting of the field being pasted, how do we proceed?
We are pasting into a TRichViewEdit component.
thanks
Format a text from Clipboard
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Format a text from Clipboard
Sorry, I do not understand the question. Can you give an example?
Re: Format a text from Clipboard
I want to clear the formatting when pasting a copied text.
Sorry for my English.
Sorry for my English.
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Format a text from Clipboard
Call PasteTextW instead of PasteDef.
If you use RichViewActions, you can use TrvActionPasteAsText. Its default shortcut is Shift+Ctrl+V (Edit | Paste as Text command).
If you use RichViewActions, you can use TrvActionPasteAsText. Its default shortcut is Shift+Ctrl+V (Edit | Paste as Text command).
Re: Format a text from Clipboard
It worked!
Thanks Sergey
Thanks Sergey