示例#1
0
        internal void ShowOverloadInternal()
        {
            int pos = _lastPos;

            if (pos < 0)
            {
                pos = NativeScintilla.GetCurrentPos();
            }

            string s = "\u0001 {1} of {2} \u0002 {0}";

            s = string.Format(s, _overloadList.Current, _overloadList.CurrentIndex + 1, _overloadList.Count);
            NativeScintilla.CallTipCancel();
            NativeScintilla.CallTipShow(pos, s);
            NativeScintilla.CallTipSetHlt(_highlightStart, _highlightEnd);
        }
示例#2
0
        internal void ShowOverloadInternal()
        {
            int pos = _lastPos;

            if (pos < 0)
            {
                pos = NativeScintilla.GetCurrentPos();
            }

            // Scintilla's way of handling "1 of n" type calltips
            string prefix = string.Format(CultureInfo.CurrentUICulture, "\u0001 {0} of {1} \u0002 ", _overloadList.CurrentIndex + 1, _overloadList.Count);

            // Show me the money
            NativeScintilla.CallTipCancel();
            NativeScintilla.CallTipShow(pos, prefix + _overloadList.Current);
            NativeScintilla.CallTipSetHlt(_highlightStart + prefix.Length, _highlightEnd + prefix.Length); // Adjust the highlight offsets
        }
示例#3
0
 /// <summary>
 /// Hides the calltip
 /// </summary>
 /// <remarks>
 /// <see cref="Hide"/> and <see cref="Cancel"/> do the same thing
 /// </remarks>
 public void Hide()
 {
     NativeScintilla.CallTipCancel();
 }