Browse Source

added some details

TiReischl 5 years ago
parent
commit
b182c2bd8f
1 changed files with 11 additions and 0 deletions
  1. 11 0
      SketchAssistant/SketchAssistant/Form1.cs

+ 11 - 0
SketchAssistant/SketchAssistant/Form1.cs

@@ -148,6 +148,13 @@ namespace SketchAssistant
             //pictureBoxRight.Image = rightImage;
             timer2.Enabled = !clicked;
             clicked = !clicked;
+
+            if (clicked)
+            {
+                painttoolStripMenuItem.BackColor = Color.Aqua;
+            }
+            else
+                painttoolStripMenuItem.BackColor = Color.White;
         }
 
         //add a Point on every tick to the Drawpath
@@ -160,6 +167,10 @@ namespace SketchAssistant
                 pictureBoxRight.Image = rightImage;
                 i++;
             }
+            if (!mousedown)
+            {
+                points[0] = p;
+            }
         }
 
         //get current Mouse positon