Can I temporarily suppress image links for faster scrolling?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form containing an unbound object frame that I have coded to be
filled by a linked image that is different for each of the form's records.
These images are only thumbnails of around 18kb each and so they load fairly
quickly - but not nearly quick enough for me to be able to rapidly scroll
through the records using my mouse wheel. Each time I give the mouse wheel a
spin, the form moves to the next record and then stops. There seems to be no
buffering of mouse wheel moves, so if you are not still moving the wheel
after the form has found the next record then the form will stay on that
record.

If I use embedded images, rather than linked images, the scrolling operates
almost instantaneously.

Considering the example of scrolling from record 1 to record 10, I have no
need to display the intermediate images for records 2 to 9. Is there any way
to temporarily inhibit the image linking during the scrolling process?
 
Hi,


That is far from automatic but I will use an unbound control, and a timer.
At the end of the onCurrent event procedure handler, I would start the timer
delay of 200 msec. In the time event handler subroutine, firing not before
200 msec after the end of the last onCurrent, I would load the image in the
unbound control (or re-establish its control source, or whatever it fits in
your case), and kill the timer (timerinterval = 0). SO... if multiple
onCurrent occur, in cascade, each not more than 200 msec apart, the image
won't be loaded. Only when "nothing" occur in the onCurrent, for 200 msec,
then the image would appear. So, for fast scrolling, each picture won't be
loaded, which can increase the navigation speed.


Hoping it may help,
Vanderghast, Access MVP
 
Back
Top