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 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/ScintillaDoc.html') 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. -- cgit v1.2.3