Good Day everyone.

Can anyone provide some overview, possibly some flow on the program that i currently trying to do? Possibly some example that I can refer to.


I already have a menu to select shapes that i want to draw.
I wanted to draw a shape anywhere in the client area based on my mouse clicked. Let say a triangle.
The location of mouse pointer, in the centre of my triangle.
As long as I didn't choose new shape to draw, I can keep drawing new triangle anywhere in the client area.

I'm using polyline to draw my shape. my question is, what should I include inside my programming in order for my program able to perform the above task?


Regard,
Kurogane.