Re: wanna truncate part of figure...



On Tue, 2006-04-11 at 08:04 +0530, sahlot arvind wrote:
> 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....

your expose handler is responsible for all drawing. if things need to be
erased, then it needs to erase them, just as it needs to draw them.

--p





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