|[Overview][Constants][Types][Classes][Procedures and functions][Index]||[#lcl]|
Moves the selected text into the clipboard (removes it from the control).
Source position: stdctrls.pp line 848
public procedure TCustomEdit.CutToClipboard; virtual;
CutToClipboard is a method used to move the current text selection in the control to the clipboard. The selected value is removed from the Text in the control.
CutToClipboard is performed when the Ctrl+X or Shift+Delete key combination is handled in the control (macOS uses Meta+X or Shift+Delete). Pressing Shift+Delete when text is not selected (SelLength is 0) causes the the character prior to the editing cursor to be deleted but not copied to the clipboard. No actions are performed if the editing cursor is positioned before the first character in the Text for the control.
CutToClipboard calls the Cut method in the widgetset class when its handle has been allocated.
Use CopyToClipboard to copy the current text selection in the control to the clipboard.
Use PasteFromClipboard to insert the contents of the clipboard at the current position in the edit control.
Use Undo to revert the last editing action performed in the control.
|CT Web help|