I'm running Delphi XE7 on Windows 7. I've created a simply project with a button and two edits. This is the button click event:
Edit1.Text := 'Paste this text';
Edit1.SelStart := 6;
Edit1.SelLength := 4; // Remove "this"
This fails. The copy and cut functions (I've tested both) work. However, the Paste function fails. The KeyPreview property on the form is false.
I have no clue why this simple code is failing.