TMemo.CopyToClipboard fails to copy anything in Linux/KDE
Original Reporter info from Mantis: roseway
-
Reporter name: Eric Chapman
Original Reporter info from Mantis: roseway
- Reporter name: Eric Chapman
Description:
When using the following code, nothing is copied to the clipboard in Linux/KDE, but it works properly in Windows:
Memo1.SelectAll;
Memo1.CopyToClipboard;
Memo1.SelLength := 0;
If I delete the third line then the code works but the text remains highlighted.
Steps to reproduce:
Drop a TMemo and a button on the form.
Add a few lines of text to the TMemo.
In the button's OnClick event handler put the three lines of code listed above.
Run the program and click the button.
Check the contents of the clipboard.
Mantis conversion info:
- Mantis ID: 24712
- Platform: Linux 32-bit and 64-bit with KDE
- Version: 1.0.10
- Monitored by: » roseway (Eric Chapman)