FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Repaint problem

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
Bojo



Joined: 22 Oct 2004
Posts: 23
Location: Denmark

PostPosted: Tue Nov 30, 2004 11:18 am    Post subject: Repaint problem Reply with quote

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. Confused

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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Tue Nov 30, 2004 11:51 am    Post subject: Re: Repaint problem Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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