PDA

View Full Version : Keeping points displayed as new ones created



ebsaith
18th June 2013, 12:41
Good Day,

I made a simple program that creates 2 points based on mouse click position and draws lines between them
Since it happens several times new points are created and new lines are drawn.... Works fine all points are saved in an array

My problem is after line drawn between two points, when user clicks a new point for a new line
the old line/old points disappear.

How do i keep the points displayed all the time

Santosh Reddy
18th June 2013, 12:55
Store each set of the point in a list / array and redraw them again.

ebsaith
19th June 2013, 10:59
Kind Regards