|
-
Dec 29th, 1999, 09:30 PM
#1
Thread Starter
New Member
Greetings,
I've seen a few emails similar to this one recently, but none have been drawing to the screen in the way that I am.
I am using the Draw method of the ImageList control to paint a picture directly to a form, at a refresh rate of ~50ms. I'm getting the tearing problem to do with the screen refreshing before the image is fully plotted - my question is, does anyone know of a way to wait for the screen refresh? Or is there another way around my problem?
------------------
Mike
Software Developer
-
Dec 30th, 1999, 07:22 AM
#2
Thread Starter
New Member
I've fixed it myself since posting...
As it was before, I had auto-redraw of the form set to false, and was doing all the painting of the form in form_paint.
What I have done now is to set the auto-redraw to true, and to ignore the form_paint event. I now explicitly do a CLS, re-paint the scene and THEN call Form.refresh
This seems to clear it up, as from the looks of things, VB buffers the display until the refresh is called... correct?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|