Click on the form to draw curve