ReDisplay

Hello,
I have a pop up menu that has a shape and color submenu. The program should allow the user to click on the shape(eg circle) and then choose a color. After that it will draw the circle with the specified radius. Now the dilemma is that when I choose to change the color, my previous circle is wiped out. How do I make the previous circle stay?

You must keep track of each object you draw, in sometype of variable array and then you redraw each object + new object each time the screen is refreshed.

Originally posted by gufranv:
Hello,
I have a pop up menu that has a shape and color submenu. The program should allow the user to click on the shape(eg circle) and then choose a color. After that it will draw the circle with the specified radius. Now the dilemma is that when I choose to change the color, my previous circle is wiped out. How do I make the previous circle stay?