diff options
-rw-r--r-- | include/Scintilla.h | 2 | ||||
-rw-r--r-- | include/Scintilla.iface | 6 | ||||
-rw-r--r-- | src/ScintillaBase.cxx | 10 |
3 files changed, 18 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index a04dc6c50..6a22e32b3 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -341,6 +341,8 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_CALLTIPPOSSTART 2203 #define SCI_CALLTIPSETHLT 2204 #define SCI_CALLTIPSETBACK 2205 +#define SCI_CALLTIPSETFORE 2206 +#define SCI_CALLTIPSETFOREHLT 2207 #define SCI_VISIBLEFROMDOCLINE 2220 #define SCI_DOCLINEFROMVISIBLE 2221 #define SC_FOLDLEVELBASE 0x400 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 4ec3566a1..f91749a6e 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -884,6 +884,12 @@ fun void CallTipSetHlt=2204(int start, int end) # Set the background colour for the call tip. set void CallTipSetBack=2205(colour back,) +# Set the foreground colour for the call tip. +set void CallTipSetFore=2206(colour fore,) + +# Set the foreground colour for the highlighted part of the call tip. +set void CallTipSetForeHlt=2207(colour fore,) + # Find the display line of a document line taking hidden lines into account. fun int VisibleFromDocLine=2220(int line,) diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 0af04ad0b..62cdcdd74 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -571,6 +571,16 @@ sptr_t ScintillaBase::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lPara InvalidateStyleRedraw(); break; + case SCI_CALLTIPSETFORE: + ct.colourUnSel = ColourDesired(wParam); + InvalidateStyleRedraw(); + break; + + case SCI_CALLTIPSETFOREHLT: + ct.colourSel = ColourDesired(wParam); + InvalidateStyleRedraw(); + break; + case SCI_USEPOPUP: displayPopupMenu = wParam != 0; break; |