From aef08781447174ac2f4687d5594ea8a27a5358df Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 1 Apr 2013 14:25:49 +1100 Subject: Feature [#981]. Added autocompletion order property to allow list to be ordered according to container preference but still allowing selection by typing. From Alpha. --- doc/ScintillaDoc.html | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index cfa13bfdc..9760c7c27 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -4108,6 +4108,8 @@ struct Sci_TextToFind { SCI_AUTOCGETIGNORECASE
SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR(int behaviour)
SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR
+ SCI_AUTOCSETORDER(int order)
+ SCI_AUTOCGETORDER
SCI_AUTOCSETAUTOHIDE(bool autoHide)
SCI_AUTOCGETAUTOHIDE
SCI_AUTOCSETDROPRESTOFWORD(bool @@ -4132,10 +4134,13 @@ struct Sci_TextToFind { and SCI_AUTOCGETSEPARATOR.

-

The list of words should be in sorted order. If set to ignore case mode with SCI_AUTOCSETIGNORECASE, then +

With default settings, the list of words should be in sorted order. + If set to ignore case mode with SCI_AUTOCSETIGNORECASE, then strings are matched after being converted to upper case. One result of this is that the list should be sorted with the punctuation characters '[', '\', ']', '^', '_', and '`' sorted after - letters.

+ letters. + Alternative handling of list order may be specified with SCI_AUTOCSETORDER +

SCI_AUTOCCANCEL
This message cancels any displayed autocompletion list. When in autocompletion mode, the list @@ -4220,6 +4225,20 @@ struct Sci_TextToFind { This corresponds to a behaviour property of SC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE (0). If you want autocompletion to ignore case at all, choose SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE (1).

+

SCI_AUTOCSETORDER(int order)
+ SCI_AUTOCGETORDER
+ The default setting SC_ORDER_PRESORTED (0) requires that the list be provided in alphabetical sorted order. +

+

Sorting the list can be done by Scintilla instead of the application with SC_ORDER_PERFORMSORT (1). + This will take additional time. +

+

Applications that wish to prioritize some values and show the list in order of priority instead + of alphabetical order can use SC_ORDER_CUSTOM (2). + This requires extra processing in SCI_AUTOCSHOW to create a sorted index. +

+

Setting the order should be done before calling SCI_AUTOCSHOW. +

+

SCI_AUTOCSETAUTOHIDE(bool autoHide)
SCI_AUTOCGETAUTOHIDE
By default, the list is cancelled if there are no viable matches (the user has typed -- cgit v1.2.3