CallTip highlight problem

Nov 15, 2010 at 5:07 PM

I'm using CallTip.HighlightStart and CallTip.HighlightEnd properties to highlight parts of the function definition in the calltip. When I change this values, the highlight stays as it was set at the beginning. Is there something I should do (do repaint of the calltip? hide and show it?) to be able to change it start and end parameters?

Nov 18, 2010 at 7:13 AM

I've solved this problem. In my calltip click event handler I just added this code:

e->HighlightStart = scintilla1->CallTip->HighlightStart;
e->HighlightEnd = scintilla1->CallTip->HighlightEnd;

I had to do that because in the FireCallTipClick method in Scintilla.cs my HighlightStart and HighlightEnd values were changed by this code:

CallTip.HighlightStart = e.HighlightStart;
CallTip.HighlightEnd = e.HighlightEnd;