Results 1 to 2 of 2

Thread: Unlimited thumbnail browser

  1. #1

    Thread Starter
    Lively Member Radar's Avatar
    Join Date
    Apr 2001
    Posts
    70

    Question Unlimited thumbnail browser

    Hi everyone

    I'm building a thumbnail browser as part of a bigger project, and it needs to have an unlimited display capacity (i.e. - no limit to the number of thumbs in a given directory - just like ACDSee) that it can display. To generate thumbnail images, It uses PaintPicture with appropriate sizing and positioning code to paint the thumbnails into a big picturebox. So far so good. Works fast and uses very little system resources. Problem is this - after about 500 - 600 thumbnails, I get an error 480 "Can't create autoredraw image". I know that what is causing it is that after the picbox which holds the thumbs gets beyond a certain size, there isn't enough memory to autoredraw. I tried turning off autoredraw and painting manually in the picbox's paint event, but this doesn't seem to work and erases the thumbs on every paint event. After looking at other programs which do this, I'm convinced that they just write math for the scrollbar which loads/unloads thumbs as needed based on the scrollbar value. I'm just not smart enough to write that kind of math. Sorry for such a long post, and if anyone can help or has ideas on this I'll be forever grateful. Merry Xmas

    - Radar
    Aww screw it. I didn't really want to fool with it anymore anyhow.

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Try using Image controls. They stretch images the same way as PaintPicture does.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

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