Hello,
copying to clipboard works already fine, but I did not managed to simply paste text from clipboard into buffer / ansistring. I tried Clipboard.SupportedFormats and it was empty. I assume it is more simple that I mean. Please write some lines of sample code. I even compared my code with the synedit code, nothing helps.
I tried:
Clipboard.Open;
ClipboardStream := tMemorystream.Create;
Clipboard.GetFormat (cf_text, ClipboardStream);
and then
ClipboardStream.Write (Zero, 1);
result := pointer (ClipboardStream.Memory);
alternate code
result := Pointer (Clipboard.AsText);
The code should fit for all platforms. Thank you for any hint.