[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123456[7]8910 ]

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 03:42:33 10/30/01 Tue
Author: Niek Bakker
Subject: Re: How to create an application to have thumbnails?
In reply to: ANDREW DIABO 's message, "How to create an application to have thumbnails?" on 16:23:21 10/25/01 Thu


you can do this by using a Listview.
1. Add all the image-files you want to browse to the items property of a TListView component.
2. Connect an empty TImageList component to your ListView. You can specify a width and height of 128 (pixels) to view large icons.
3. In the onCustomDrawItem-eventhandler add code to retrieve the image from disk and convert it to a bitmap to draw in the ICON-rect space on the Listview's canvas.
4. To speed things up, you could use a TClientDataSet to store all the to a small bitmap converted images. So that in the above mentioned eventhandler you can retrieve the images from the clientdataset. This works pretty fast!

Hope this helps,
Niek Bakker
>I would like to create an application that can browse
>for a folder that has image files and display them in
>a series of thumbnails. Any demo project that I can
>get to demonstrate this? Any help is greatly

[ Next Thread | Previous Thread | Next Message | Previous Message ]


  • Re: How to create an application to have thumbnails? -- Tim Griffin, 10:46:01 10/31/01 Wed
    [ Contact Forum Admin ]

    Forum timezone: GMT-5
    VF Version: 3.00b, ConfDB:
    Before posting please read our privacy policy.
    VoyForums(tm) is a Free Service from Voyager Info-Systems.
    Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.