From 22df40bcce0d1cef780c243ba2812c4c8a9c8d7b Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 3 Sep 2023 12:15:27 +0200 Subject: [PATCH] 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. --- components/synedit/synedit.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/synedit/synedit.pp b/components/synedit/synedit.pp index 1db6c78777..4950c33647 100644 --- a/components/synedit/synedit.pp +++ b/components/synedit/synedit.pp @@ -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;