diff options
| author | nyamatongwe <unknown> | 2003-02-04 10:39:19 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2003-02-04 10:39:19 +0000 |
| commit | 45951fc82179317ed4ee90d3e376003771a9b7bc (patch) | |
| tree | 56bbdcf3e0824528f3a924343439e56850d2a74c | |
| parent | 1e4eea2afb009595fa772a8162eaaa105e68c99a (diff) | |
| download | scintilla-mirror-45951fc82179317ed4ee90d3e376003771a9b7bc.tar.gz | |
Patch from Mauritius Thinnes to set the type separator for autocompletion
images.
| -rw-r--r-- | include/Scintilla.h | 2 | ||||
| -rw-r--r-- | include/Scintilla.iface | 7 | ||||
| -rw-r--r-- | src/ScintillaBase.cxx | 7 |
3 files changed, 16 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index 386271bbe..f0c041b6f 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -246,6 +246,8 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_AUTOCGETDROPRESTOFWORD 2271 #define SCI_REGISTERIMAGE 2405 #define SCI_CLEARREGISTEREDIMAGES 2408 +#define SCI_AUTOCGETTYPESEPARATOR 2285 +#define SCI_AUTOCSETTYPESEPARATOR 2286 #define SCI_SETINDENT 2122 #define SCI_GETINDENT 2123 #define SCI_SETUSETABS 2124 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index dd4d2d37e..09f5aea91 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -591,6 +591,13 @@ fun void RegisterImage=2405(int type, string xpmData) # Clear all the registered XPM images. fun void ClearRegisteredImages=2408(,) +# Retrieve the auto-completion list type-separator character. +get int AutoCGetTypeSeparator=2285(,) + +# Change the type-separator character in the string setting up an auto-completion list. +# Default is '?' but can be changed if items contain '?'. +set void AutoCSetTypeSeparator=2286(int separatorCharacter,) + # Set the number of spaces used for one level of indentation. set void SetIndent=2122(int indentSize,) diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 48de85191..a112a4af6 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -518,6 +518,13 @@ sptr_t ScintillaBase::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lPara ac.lb->ClearRegisteredImages(); break; + case SCI_AUTOCSETTYPESEPARATOR: + ac.SetTypesep(static_cast<char>(wParam)); + break; + + case SCI_AUTOCGETTYPESEPARATOR: + return ac.GetTypesep(); + case SCI_CALLTIPSHOW: { AutoCompleteCancel(); if (!ct.wCallTip.Created()) { |
