Results 1 to 2 of 2

Thread: Screen flicker - drawing bitmaps directly to form

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    St. Albans, Herts, England
    Posts
    3

    Post

    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

  2. #2

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    St. Albans, Herts, England
    Posts
    3

    Post

    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
  •  



Click Here to Expand Forum to Full Width