MM ROy


Sir,
I am using Visual FoxPro 6.0 version. I want to view (like thumbnail) all the images of a folder (.jpg, .gif, etc.) using with visual foxpro form. The number of images may be varying. I have no idea....Please help...
Roy MM



Re: Thumbnail -Images

Naomi Nosonovsky


Check http://weblogs.foxite.com/cesarchalom/archive/2007/06/27/4199.aspx for presenting GetPict dialog in thumbnail view.






Re: Thumbnail -Images

fvp4ever

No, i don't think that GetPict is what he wants, he wrote: "with visual foxpro form". I think he means he want to program something like acdsee or windows explorer's thumbnail view, here is my suggestion:

1) create a form, enable it's scroll bars, program this algorithm:

2) get list of image files using ADIR() function

3) create an instance of Image object using form.AddObject

4) set their Picture property for each file

5) set their position and size

but if you need something like right-click menu or ... for each picture, you should write a custom class based on Container or Image and use it instead of standard Image object.

I can't remember vfp 6 limitations but if you could not find such functions, there should be some other solutions.

hope this helps






Re: Thumbnail -Images

Naomi Nosonovsky

Good idea. Yes, we may have a custom form. Check http://weblogs.foxite.com/cesarchalom/archive/2006/12/29/3068.aspx for VFP9 implementation. I'm afraid it would be hard to implement in VFP6.





Re: Thumbnail -Images

MM ROy

Good idea. Thank you sir.
One doubt....It is possible in List Box (ListView ) or any other controls within form...
I want to disable form's scroll bars...
Roy MM




Re: Thumbnail -Images

fvp4ever

Thank you guys.

ListBox No, As far as I know, it does not supports images properly, you can use Container or Tabview instead of form but I Don't recommend you to (you will have to make scroll bars yourself)

you may find some ActiveX out there but I don't recommend it too,

if you need to have something other than images in you form (that should be separate of image list), I recommend you to use another form (formset or another stand-alone form is depended to you) and align them programmaticaly. if you need your forms to apear like a single form, just remove title bars. (maybe it's better to back to Container idea!)





Re: Thumbnail -Images

Naomi Nosonovsky

Yes, you can use ListView (ActiveX) or you can even use Grid with images.





Re: Thumbnail -Images

fvp4ever

can they view images multi-column





Re: Thumbnail -Images

Naomi Nosonovsky

What exactly do you mean Insert multiple images in one column or images in several columns of the grid

I haven't tried the first, though I don't anticipate much difficulties here, but you can have images in several columns, no problem.





Re: Thumbnail -Images

fvp4ever

I mean several columns of grid, it's important to have multiple columns when you're going to make a file browser.

listview maybe, but I think that grid will not be a good choice




Re: Thumbnail -Images

MM ROy

Can I load images (.jpg, gif, etc.) on ListView. I am using VFP 6.0. If possible, let me know the commands.....
Roy MM