wanna truncate part of figure...



Hello all
I have one button, one text entry and one plot area.. now what I want is that enter some integer number and click the button then that number of rectangles of equal size (20 * 20) in a row starting from (30,30) will be drawn on the plot area..
But the problem which I am facing is that if I enter 10 and click the button then its ok , 10 equal sized rectangle will be drawn but if I enter 5 for second time and click the button then again same number (i.e.10) of rectangles are getting drawn, actually last 5 rectangles are not getting truncated...
So is there any method to erase the plot area??? What I am thinking is that, if there is some method to erase then on every click I must first erase plot area then start drawing from fresh end....
Some body please help me out in this regard...
Thanks and Regards,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]