SynEdit: deprecate SelStart/SelEnd. This is as a means to warn that they are *extremely* slow, and BlockBegin/BlockEnd should be used.

SelStart/SelEnd are currently NOT to be removed.
This commit is contained in:
Martin 2023-09-03 12:15:27 +02:00
parent cf0443de0e
commit 22df40bcce

View File

@ -944,7 +944,9 @@ type
property BlockBegin: TPoint read GetBlockBegin write SetBlockBegin; // Set Blockbegin. For none persistent also sets Blockend. Setting Caret may undo this and should be done before setting block
property BlockEnd: TPoint read GetBlockEnd write SetBlockEnd;
property SelStart: Integer read GetSelStart write SetSelStart; // 1-based byte pos of first selected char
deprecated 'Use "BlockBegin" / SynMemo compatibility - very slow / SynEdit operates on x/y';
property SelEnd: Integer read GetSelEnd write SetSelEnd; // 1-based byte pos of first char after selction end
deprecated 'Use "BlockEnd" / SynMemo compatibility - very slow / SynEdit operates on x/y';
property IsBackwardSel: Boolean read GetIsBackwardSel;
property SelText: string read GetSelText write SetSelTextExternal;