PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] Thumbnails in a Looper
[WD20] Thumbnails in a Looper
Iniciado por guest, 05,ago. 2016 10:41 - 3 respuestas
Publicado el 05,agosto 2016 - 10:41
Hi,

I know we have this topic several times ....

I have a Looper with an imagecontrol 80x80 and have defined a thumbnail in the analysis with 80x80 and 160x160.
The source of the looper is a query.

If I understand the help correctly WD should select a thumbnail for the imagecontrol but I have my doubt ....
It´s terrible slow. How can I force the use of a thumbnail ???
Publicado el 05,agosto 2016 - 11:12
Ok, I replaced the query with:

for all pictures where guid=myguid
looperadd(picture.picture...thumbnail)
end


...and voila, its fast.

That means the automatic doesn´t work !!!!
Publicado el 05,agosto 2016 - 16:08
Hi Michael

I haven't tested, but my understanding is that the automatic should work when the looper is linked directly to the -FILE-

When you do a query, you are putting an added layer in the middle, and I don't think that queries in any language on any DB know how to manage thumbnails.

IN any case, I find it a good idea to first fill a looper with anything BUT images, then do a secondary loop (sometime on a timer) to fill the images... That is especially useful on slower environment (web, mobile, etc)

Best regards
Publicado el 05,agosto 2016 - 16:11
Hi Fabrice,

yes, that also my way.

I think I misunderstud the helpfile in this case ....