Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rewinding Through Records
Message
 
À
16/05/1998 09:34:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00099920
Message ID:
00099921
Vues:
14
Dale,

It does seem like there should be ButtonDown and ButtonUp events that would be independant of mouse up, mouse down, and click (for instance, you can push the button down, then move off of it with the mouse and have it come back up without triggering Click). You could create a timer on your form that would move the record pointer and refresh the screen in its timer event. Enable the timer in the button's MouseDown, then disable it in the MouseUp (it should be disabled initially). You'll also need to deal with the user moving off the button without releasing the mouse button. You can probably deal with that in MouseMove.

>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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform