View previous topic :: View next topic |
Author |
Message |
Bojo
Joined: 22 Oct 2004 Posts: 23 Location: Denmark
|
Posted: Tue Nov 30, 2004 11:18 am Post subject: Repaint problem |
|
|
Was experimenting with the draw example when I noticed a repainting problem.
If you reduce the width of the form and then increase it again, the text from drawText is not repainted properly.
It seems that height/width don't change when they're reduced and somehow it messes up the drawText repainting.
If I change the drawText from:
Code: | ea.graphics.drawText("&Hello\tTab1\tTab2aaa\tTab3\r\nWorld", font, Color(38, 153, 84), dfl.drawing.Rectangle(Point(0, 0), clientSize));
|
to f.inst.
Code: | ea.graphics.drawText("&Hello\tTab1\tTab2aaa\tTab3\r\nWorld", font, Color(38, 153, 84), dfl.drawing.Rectangle(0,0, 250, height));
| it repaints just fine.
Changing the height of the form does not have this problem. |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Tue Nov 30, 2004 11:51 am Post subject: Re: Repaint problem |
|
|
Bojo wrote: | Was experimenting with the draw example when I noticed a repainting problem.
If you reduce the width of the form and then increase it again, the text from drawText is not repainted properly. |
I think it's due to the draw width being the Form's client size: as you slowly increase the width of the form with the mouse, the text keeps getting clipped on the right and ends up showing a bunch of gaps and clips. Seems like just a mistake in the example. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|