Could any one give me idea how to join mouse clicks with a line at runtime.
i have a Joinbutton on window by clicking button the mouse clicks should join.
on window, if i click two times and click on Joinbutton the two mouseclick positions should join with a line.
if i click three times on window and click on Joinbutton the three mouseclick positions should join and form a triangle, similarly for four click , the mouse click positions should join and form a rectangle.
Plz give your suggestions to resolve this.