diff options
author | nyamatongwe <unknown> | 2003-12-14 02:58:32 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-12-14 02:58:32 +0000 |
commit | e37826bb715cdee113202f925d65a78560dd2bff (patch) | |
tree | 3aa246b6272f6fc2eeb5018c7b6fff4994b6fc34 /src | |
parent | aaba846cd86df4857e296dac242a3d2a4afa9063 (diff) | |
download | scintilla-mirror-e37826bb715cdee113202f925d65a78560dd2bff.tar.gz |
Added SCI_AUTOCGETCURRENT.
Diffstat (limited to 'src')
-rw-r--r-- | src/ScintillaBase.cxx | 9 | ||||
-rw-r--r-- | src/ScintillaBase.h | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index ed391c846..e42b5dc65 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -347,6 +347,10 @@ void ScintillaBase::AutoCompleteCompleted() { pdoc->EndUndoAction(); } +int ScintillaBase::AutoCompleteGetCurrent() { + return ac.lb->GetSelection(); +} + void ScintillaBase::CallTipShow(Point pt, const char *defn) { AutoCompleteCancel(); pt.y += vs.lineHeight; @@ -499,6 +503,9 @@ sptr_t ScintillaBase::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lPara ac.Select(reinterpret_cast<char *>(lParam)); break; + case SCI_AUTOCGETCURRENT: + return AutoCompleteGetCurrent(); + case SCI_AUTOCSETCANCELATSTART: ac.cancelAtStartPos = wParam != 0; break; @@ -559,7 +566,7 @@ sptr_t ScintillaBase::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lPara return ac.GetTypesep(); case SCI_CALLTIPSHOW: - CallTipShow(LocationFromPosition(wParam), + CallTipShow(LocationFromPosition(wParam), reinterpret_cast<const char *>(lParam)); break; diff --git a/src/ScintillaBase.h b/src/ScintillaBase.h index bb09e3f5b..6ea23ab5a 100644 --- a/src/ScintillaBase.h +++ b/src/ScintillaBase.h @@ -65,6 +65,7 @@ protected: void AutoCompleteStart(int lenEntered, const char *list); void AutoCompleteCancel(); void AutoCompleteMove(int delta); + int AutoCompleteGetCurrent(); void AutoCompleteCharacterAdded(char ch); void AutoCompleteCharacterDeleted(); void AutoCompleteCompleted(); |