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. --- include/Scintilla.h | 5 +++++ include/Scintilla.iface | 11 +++++++++++ 2 files changed, 16 insertions(+) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index 48c7ff379..490cd3bf6 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -698,6 +698,11 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE 1 #define SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR 2634 #define SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR 2635 +#define SC_ORDER_PRESORTED 0 +#define SC_ORDER_PERFORMSORT 1 +#define SC_ORDER_CUSTOM 2 +#define SCI_AUTOCSETORDER 2660 +#define SCI_AUTOCGETORDER 2661 #define SCI_ALLOCATE 2446 #define SCI_TARGETASUTF8 2447 #define SCI_SETLENGTHFORENCODE 2448 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 496f472ae..8d15e1c4c 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -1842,6 +1842,17 @@ set void AutoCSetCaseInsensitiveBehaviour=2634(int behaviour,) # Get auto-completion case insensitive behaviour. get int AutoCGetCaseInsensitiveBehaviour=2635(,) +enu Ordering=SC_ORDER_ +val SC_ORDER_PRESORTED=0 +val SC_ORDER_PERFORMSORT=1 +val SC_ORDER_CUSTOM=2 + +# Set the way autocompletion lists are ordered. +set void AutoCSetOrder=2660(int order,) + +# Get the way autocompletion lists are ordered. +get int AutoCGetOrder=2661(,) + # Enlarge the document to a particular size of text bytes. fun void Allocate=2446(int bytes,) -- cgit v1.2.3