Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with Timers and DoEvents
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Problems with Timers and DoEvents
Divers
Thread ID:
00183368
Message ID:
00183368
Vues:
183
Hi all,
I have a for that contain a custom animation class. This have a lot of Image controls and a Timer control to simulate the animation.
This form also have a command button that when click event is fired call to a rutine in a .PRG.
This procedure have a loop with a call to a FastDoEvents function descripted by David Frank... (sorry, I don't remember the Last Name)

The problem:
If the mouse pointer is in a VFP windows (Screen or another of the App), No problems. But, if the mouse pointer is out of VFP, DoEvents don't work until any key is pressed.

Note: The FastDoEvents function verify the location of the mouse pointer and it is not in VFP make an insertion of the any char into the keyboard buffer and then clean it with Inkey().

Any suggestion ????

Note2: I believe that the solution is instead of make KEYBOARD Chr(254) and then =Inkey(), fill the keyboard buffer with an API function, to force an event.
Lic. Esteban Bruno
Gerente de Sistemas
TASSO S.R.L.
Répondre
Fil
Voir

Click here to load this message in the networking platform