>I'm looking for a way to 'rewind' through records using VCR buttons. The effect I want is to be able press and hold my 'Previous' button and the records displayed will step backwards at 3 or 4 per second. At the same time, a single click will take me back one record at a time. I have tried putting my rewinding code in the MouseDown event, but the button picture does not change state to appear pressed until all code in the MouseDown event is completed. I could draw normal and MouseDown bmps and change the This.picture value in the MouseDown and MouseUp events, but this isn't as elegant as it should be. Ideally, there needs to be a kind of WhileMouseDown event to do this correctly.
>Anyone have any samples or solutions to the button problem or the coding of the actualy rewinding process?
>
>Much obliged.
>
>DRE
In your prev and next buttons put something like this
if nButton = 1
now = seconds()
do while !bof() and mdown()
if seconds() - now > 1
skip -1
thisform.refresh
now = seconds()
endif
enddo
endif
Cetin