Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Triggering ProgrammaticChange from a wait state
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Triggering ProgrammaticChange from a wait state
Divers
Thread ID:
00112626
Message ID:
00112626
Vues:
40
I have written a little DLL that allows one to force a programmatic change event to occur at the next wait state. A sample main routine is:

SET CLASSLIB to idle
loObj = CREATEOBJECT("IdleForm")

SET LIBRARY TO VFPIdle.DLL

IdleStart(loObj.IdleTest)
loObj.Show()

READ EVENTS

SET LIBRARY TO

The IdleTest object (any object passed to IdleStart) needs to have:
Value property (will be changed so hide the control)
mlPending property
ProgrammaticChange method

When the mlPending property is set to .T. the next time a wait state is entered, a ProgrammaticChange event will be triggered, calling the ProgrammaticChange code.

Usage would look something like

oObj.mlPending = .T.
RETURN TO MASTER && Return to wait state

If anyone is interested, let me know and I will post the DLL.

Ned
Ned

Reality is.
Répondre
Fil
Voir

Click here to load this message in the networking platform