/// <summary>
 ///  Event Handle from Cursor event
 /// </summary>
 /// <param name="sender">The control that raised the event.</param>
 /// <param name="e">The event arguments.</param>
 public void myInkCollector_CursorDown(object sender, InkCollectorCursorDownEventArgs e)
 {
     // If the pen is inverted, this application will perform stroke
     // erasing; since we do not want to show the pen while the user
     // is erasing, make this stroke transparent.
     if (e.Cursor.Inverted)
     {
         e.Stroke.DrawingAttributes.Transparency = 255;
     }
 }
Example #2
0
 /// <summary>
 ///  Event Handle from Cursor event
 /// </summary>
 /// <param name="sender">The control that raised the event.</param>
 /// <param name="e">The event arguments.</param>
 public void myInkCollector_CursorDown(object sender, InkCollectorCursorDownEventArgs e)
 {
     // If the pen is inverted, this application will perform stroke
     // erasing; since we do not want to show the pen while the user
     // is erasing, make this stroke transparent.
     if (e.Cursor.Inverted)
     {
         e.Stroke.DrawingAttributes.Transparency = 255;
     }
 }
Example #3
0
 private void IC_CursorDown(object sender, InkCollectorCursorDownEventArgs e)
 {
     Root.FormDisplay.ClearCanvus(Root.FormDisplay.gOneStrokeCanvus);
     Root.FormDisplay.DrawStrokes(Root.FormDisplay.gOneStrokeCanvus);
     Root.FormDisplay.DrawButtons(Root.FormDisplay.gOneStrokeCanvus, false);
 }
Example #4
0
		private void IC_CursorDown(object sender, InkCollectorCursorDownEventArgs e)
		{
			Root.FormDisplay.ClearCanvus(Root.FormDisplay.gOneStrokeCanvus);
			Root.FormDisplay.DrawStrokes(Root.FormDisplay.gOneStrokeCanvus);
			Root.FormDisplay.DrawButtons(Root.FormDisplay.gOneStrokeCanvus, false);
		}