EControl Syntax Editor SDK
TCustomSyntaxMemo.PasteFromClipboard Method

Pastes contents of the Clipboard into edit control, replacing the current selection.

procedure PasteFromClipboard;

Use PasteFromClipboard to replace the selected text with the contents of the Clipboard, or if no text is selected to insert the contents of the Clipboard at the cursor. If the Clipboard is empty, or if it does not contain anything in CF_TEXT (CF_UNICODETEXT) format, PasteFromClipboard does nothing. 

If copied from clipboard text contains Tab characters and TabMode <> tmTabChar, all Tab characters will be expanded by the Space characters.

Calling PasteFromClipboard does the same thing as sending the edit control a WM_PASTE message.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!