コード例 #1
0
ファイル: OutlinerService.cs プロジェクト: rizwan3d/elalang
        private void MouseDwell(object sender, DwellEventArgs e)
        {
            var doc = App.Document() as CodeDocument;

            if (doc == null)
                return;

            var sci = App.Editor().Control as ScintillaControl;
            var messages = doc.Messages;

            if (sci == null)
                return;

            var i = sci.GetIndicatorValue(sci.Indicators.Error, e.Position);

            if (i == 0)
                i = sci.GetIndicatorValue(sci.Indicators.Warning, e.Position);

            if (i > 0 && messages.Count() > i - 1)
                sci.ShowCallTip(e.Position, messages.ElementAt(i - 1).Message);
        }
コード例 #2
0
ファイル: ScintillaControl.cs プロジェクト: rizwan3d/elalang
        private void OnMouseDwellEnd(DwellEventArgs e)
        {
            var h = MouseDwellEnd;

            if (h != null)
                h(this, e);
        }