From e37826bb715cdee113202f925d65a78560dd2bff Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 14 Dec 2003 02:58:32 +0000 Subject: Added SCI_AUTOCGETCURRENT. --- src/ScintillaBase.cxx | 9 ++++++++- src/ScintillaBase.h | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src') 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(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(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(); -- cgit v1.2.3