Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Triggering ProgrammaticChange from a wait state
Message
From
29/06/1998 15:19:32
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Triggering ProgrammaticChange from a wait state
Miscellaneous
Thread ID:
00112626
Message ID:
00112626
Views:
41
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.
Reply
Map
View

Click here to load this message in the networking platform