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); }
private void OnMouseDwellEnd(DwellEventArgs e) { var h = MouseDwellEnd; if (h != null) h(this, e); }