コード例 #1
0
 /// <summary>
 /// This event is raised when the user has placed their mouse in the same position
 /// for a specified amount of time.
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="e">The mouse event information.</param>
 private void c_CodeEditor_DwellStart(object sender, ScintillaNet.ScintillaMouseEventArgs e)
 {
     // The user may want to find out what the error is.
     foreach (LuaError err in this.m_Errors)
     {
         if (e.Position >= err.IndicatorIndex && e.Position <= err.Index + err.Length)
         {
             this.c_ToolTip.UseFading    = false;
             this.c_ToolTip.UseAnimation = false;
             this.c_ToolTip.Show(err.ErrorMsg, this.c_CodeEditor, e.X + 20, e.Y + 10);
         }
     }
 }
コード例 #2
0
 /// <summary>
 /// This event is raised when the user starts moving their mouse again after
 /// DwellStart has been previously raised.
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="e">The mouse event information.</param>
 private void c_CodeEditor_DwellEnd(object sender, ScintillaNet.ScintillaMouseEventArgs e)
 {
     this.c_ToolTip.Hide(this.c_CodeEditor);
 }