From 7ef9b27e87eb98ae11811bab4e78550b27941aaf Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 15 Jul 2009 03:10:28 +0000 Subject: More about multiple selection. --- doc/ScintillaDoc.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index b69cc09a7..a4da602d2 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -38,7 +38,7 @@

Scintilla Documentation

-

Last edited 29/June/2009 NH

+

Last edited 15/July/2009 NH

There is an overview of the internal design of Scintilla.
@@ -1463,6 +1463,8 @@ struct TextToFind { More selections are made by holding down the Ctrl key while dragging with the mouse. The most recent selection is the main selection and determines which part of the document is shown automatically. Any selection apart from the main selection is called an additional selection. + The calls in the previous section operate on the main selection. + There is always at least one selection.

@@ -1518,7 +1520,9 @@ struct TextToFind {

SCI_ADDSELECTION(int caret, int anchor)
Add a new selection from anchor to caret as the main selection retaining all other - selections as additional selections.

+ selections as additional selections. + 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_SETMAINSELECTION(int selection)
-- cgit v1.2.3