Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid takes long time when Image control used
Message
From
17/07/2010 21:47:26
 
 
To
17/07/2010 06:52:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01472780
Message ID:
01472826
Views:
55
Cetin,

Thanks for your reply. Some more questions though:

1. So, the reason for the hourglass coming out is mainly due to the sheer big size (5Mb) of the image file? This won't happen then if the images were smaller?

2. In your FAQ, a container was used. So, one can also do away with the container?

3. Is there a utility (freeware preferably) that automates the 'shrinking' process of images in a folder?

Thanks!

Dennis


>>Hi Experts,
>>
>>I would like to show the employee pictures in a grid display. My employees table contains a character field PICFILE containing the full path of the employee's picture file. I use this field as controlsource of one column.
>>
>>I followed the technique shown by Kok Kiet found in this link: http://weblogs.foxite.com/kkchan/archive/2007/06/08/3936.aspx
>>
>>It works alright - except that it takes a considerable amount of time! (The hourglass keeps on showing up)
>>
>>My questions:
>>
>>1. Are there other ways to do this?
>>2. Is it because the images are 5 megapixels each?
>>3. If 2 is the cause, how do I 'shrink' this? What is the recommended picture resolution?
>>
>>Thanks in advance.
>>
>>Dennis
>
>Dennis,
>It is easier than that in fact. Check Images, containers in grid FAQ #7934 You don't even need to use the container, simply add an image control (and using a dynamic* property like DynamicFontBold is easier).
>
>5 Mb is a lot. An employee picture would be a few K. Open it in paint, scale to a smaller size and save as jpg. Something like 96*72 pixels look OK to me, you may find out by trial and error (UT pictures for example too small to see anything).
>
>Cetin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform