Answered by:
Thumbnail -Images

Question
-
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 MMWednesday, August 1, 2007 8:10 AM
Answers
-
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.
- Proposed as answer by Ed Price - MSFTMicrosoft employee Friday, June 29, 2012 11:45 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, October 10, 2012 1:15 AM
Thursday, August 2, 2007 12:42 AM -
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!
)
- Proposed as answer by Ed Price - MSFTMicrosoft employee Friday, June 29, 2012 11:45 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, October 10, 2012 1:15 AM
Thursday, August 2, 2007 8:58 AM -
Yes, you can use ListView (ActiveX) or you can even use Grid with images.
- Proposed as answer by Ed Price - MSFTMicrosoft employee Friday, June 29, 2012 11:45 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, October 10, 2012 1:15 AM
Thursday, August 2, 2007 11:29 AM -
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- Proposed as answer by Ed Price - MSFTMicrosoft employee Friday, June 29, 2012 11:45 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, October 10, 2012 1:15 AM
Thursday, August 2, 2007 7:35 PM
All replies
-
Check http://weblogs.foxite.com/cesarchalom/archive/2007/06/27/4199.aspx for presenting GetPict dialog in thumbnail view.
Wednesday, August 1, 2007 11:23 AM -
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
Wednesday, August 1, 2007 10:26 PM -
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.
- Proposed as answer by Ed Price - MSFTMicrosoft employee Friday, June 29, 2012 11:45 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, October 10, 2012 1:15 AM
Thursday, August 2, 2007 12:42 AM -
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 MMThursday, August 2, 2007 5:37 AM
-
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!
)
- Proposed as answer by Ed Price - MSFTMicrosoft employee Friday, June 29, 2012 11:45 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, October 10, 2012 1:15 AM
Thursday, August 2, 2007 8:58 AM -
Yes, you can use ListView (ActiveX) or you can even use Grid with images.
- Proposed as answer by Ed Price - MSFTMicrosoft employee Friday, June 29, 2012 11:45 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, October 10, 2012 1:15 AM
Thursday, August 2, 2007 11:29 AM -
can they view images multi-column?Thursday, August 2, 2007 3:00 PM
-
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- Proposed as answer by Ed Price - MSFTMicrosoft employee Friday, June 29, 2012 11:45 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Wednesday, October 10, 2012 1:15 AM
Thursday, August 2, 2007 7:35 PM -
Can I load images (.jpg, gif, etc.) on ListView. I am using VFP 6.0. If possible, let me know the commands.....Roy MMFriday, August 3, 2007 5:56 AM