aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/AutoComplete.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-07-17 14:54:31 +1000
committerNeil <nyamatongwe@gmail.com>2021-07-17 14:54:31 +1000
commitad0162453e48fb729d1793eca40ac137e1e3451e (patch)
tree158e0126b95245ca178531dcba45e4ffc5dcdde5 /src/AutoComplete.cxx
parent9aa05526ca323258c4879520093a0fe27826d53c (diff)
downloadscintilla-mirror-ad0162453e48fb729d1793eca40ac137e1e3451e.tar.gz
Add SCI_AUTOCSETOPTIONS to allow choosing a non-resizeable autocompletion list
on Win32. This also avoids a header rectangle above the list.
Diffstat (limited to 'src/AutoComplete.cxx')
-rw-r--r--src/AutoComplete.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx
index fec0f20e9..87077e92a 100644
--- a/src/AutoComplete.cxx
+++ b/src/AutoComplete.cxx
@@ -39,6 +39,7 @@ AutoComplete::AutoComplete() :
typesep('?'),
ignoreCase(false),
chooseSingle(false),
+ options(AutoCompleteOption::Normal),
posStart(0),
startLen(0),
cancelAtStartPos(true),
@@ -63,10 +64,11 @@ bool AutoComplete::Active() const noexcept {
void AutoComplete::Start(Window &parent, int ctrlID,
Sci::Position position, Point location, Sci::Position startLen_,
- int lineHeight, bool unicodeMode, Technology technology) {
+ int lineHeight, bool unicodeMode, Technology technology, ListOptions listOptions) {
if (active) {
Cancel();
}
+ lb->SetOptions(listOptions);
lb->Create(parent, ctrlID, location, lineHeight, unicodeMode, technology);
lb->Clear();
active = true;