Hello,
Delphi 10.2.
unit ScrMemo;
MAJ_VER = 3; // Major version nr.
MIN_VER = 6; // Minor version nr.
REL_VER = 2; // Release nr.
BLD_VER = 0;// Build nr.
DATE_VER = 'Nov, 2017'; // Month version
MIN_VER = 6; // Minor version nr.
REL_VER = 2; // Release nr.
BLD_VER = 0;// Build nr.
DATE_VER = 'Nov, 2017'; // Month version
I added rtf to the clipboard format:
ScrMemo1.ClipboardFormats:=ScrMemo1.ClipboardFormats + [cfRTF];
The text copied to the clipboard is not correct.
This is called.
if cfRTF in ClipboardFormats then
begin
OutputRTF(true, SelStartY, SelEndY);
rtfstr := AnsiString(FRTFEngine.GetText);
end;
begin
OutputRTF(true, SelStartY, SelEndY);
rtfstr := AnsiString(FRTFEngine.GetText);
end;
The selection end position to the end of the line is copied to the clipboard, not the selected text.
Mark