Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for ideas on how to show list of digital photos 1

Status
Not open for further replies.

awaresoft

Programmer
Feb 16, 2002
373
DE
I'm looking for some ideas on how to display a list of digital photos within my application. The reason for the list of digital photos is so users can drag and drop one or more images on a detail container as a way of attaching additional documentation (in the form of photos) to a record.

Here are the approaches I'm considering:

1. Displaying images in a 1 column grid using a container control that displays image, file name, and some image properties (size, datetime, etc)

2. Using a vertically 'scrollable' container with an image control for every image

3. Using a vertical container with a fixed number of image controls (enough to cover the visible area of the container) that uses logic to move/update the image controls on a scroll event

4. Embedding a webbrowser control or "shell.explorer.2" control configured to display images as thumbnails

Feedback appreciated!

Malcolm
 
Malcom,

How about displaying the thumbnails in a ListView control. Let the user either double-click on the image, or drag it and drop it on a suitable icon. Either way, it will launch the image full size, either in the user's default image preview program or in a web browser control.

To display the thumbnails in a ListView, use my freeware SimpleList control ( which I think will provide you with everything you need, including the drag and drop.

To display the full size image, drop a Web Browser control on a form. When the user double-clicks or drops the thumbnail, call the web browser's Navigate2 method, passing the path and file of the image.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Mike,

Just downloaded your SimpleList class and will take a look at how it works.

The only downside I see so far is that the ListView control looks out-of-place on a form with XP themes enabled. Is there a way (manifest file?) to have the ListView control rendered in a theme compatible manner?

Thanks again for your suggestion and for sharing your SimpleList class with the community!

Malcolm


 
Mike,

I remember reading that some ActiveX controls can be theme enabled using what's called a manifest file.

Thanks for your help on this thread,

Malcolm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top