Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DOEVENTS - Absolute position of mouse
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00155157
Message ID:
00155502
Vues:
32
Steve,

Well, ummmm my mistake *g*

It's not a function, it is just a command. So I guess the VFP parser just either throws away or ignores the () and doesn't really make a function call. Xbase has always been such a loose compiler once it's got something it understands it ignores everything else.

As far as the order goes, the mouse event done before the DOEVENTS will get processed by that DOEVENT call. If you mouse event after it won't get processed until the next time you call the function. In a tight loop it doesn't matter much, except your first call will take the 0.25 seconds to execute and then the rest would be sped up. If the mouse event happens first all calls are sped up.

It shouldn't be moving the mouse, the code basically just tells it to move the mouse to where it already is. Talk about spinning your wheels. *LOL*

>Thanks much. I noticed that you are moving the mouse before issuing DoEvents.
>I move it after the command. Which brings up another thought here. I noted in the last thread the use of DoEvents() written as a function call rather than a command DOEVENTS. And you wrote it that way here too. Am I missing something?
>Do appreciate a reprint of the code though.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform