From 26b60d88b6d848f3ba55ca046852e079be5fe3c6 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 5 Nov 2023 22:11:26 +1100 Subject: Add SCI_SELECTIONFROMPOINT for modifying multiple selections. --- doc/ScintillaDoc.html | 6 ++++++ doc/ScintillaHistory.html | 3 +++ 2 files changed, 9 insertions(+) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index dcabdd9ee..27a542e90 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -1199,6 +1199,7 @@ struct Sci_TextRangeFull { SCI_CLEARSELECTIONS
SCI_SETSELECTION(position caret, position anchor)
SCI_ADDSELECTION(position caret, position anchor)
+ SCI_SELECTIONFROMPOINT(int x, int y) → int
SCI_DROPSELECTIONN(int selection)
SCI_SETMAINSELECTION(int selection)
SCI_GETMAINSELECTION → int
@@ -1343,6 +1344,11 @@ struct Sci_TextRangeFull { Since there is always at least one selection, to set a list of selections, the first selection should be added with SCI_SETSELECTION and later selections added with SCI_ADDSELECTION

+

+ SCI_SELECTIONFROMPOINT(int x, int y) → int
+ Return the index of the selection at the point. If there is no selection at the point, return -1. + This can be used to drop a selection or make it the main selection.

+

SCI_DROPSELECTIONN(int selection)
If there are multiple selections, remove the indicated selection. diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index b808bd4b8..2e26d8900 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -591,6 +591,9 @@ Released 18 November 2023.

  • + Add SCI_SELECTIONFROMPOINT for modifying multiple selections. +
  • +
  • Add SCI_SETMOVEEXTENDSSELECTION and SCI_CHANGESELECTIONMODE to simplify selection mode manipulation.
  • -- cgit v1.2.3