Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer _SCREEN
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00092031
Message ID:
00092098
Views:
25
>In oApp.Init I have this:
>
> _SCREEN.AddObject("odTimer","timer")
> _SCREEN.odTimer.Interval = (1000 * cfgDuration)
> _SCREEN.odTimer.Enabled = .T.
>
> * Ok so far, no errors.
>
> Q. Where do I add code to the .Timer event?
> How do I know if anyone has moved the mouse or pressed a key?
> There is no KeyPress for a _SCREEN or formset.
> A while loop to check .Forms seems a little sloppy.
>
>Eric K.

_SCREEN doesn't have events. If you use VFP5 you could consider top-level form approach.
To customize code in _SCREEN.Timer events you should create your own timer class customizing code in Class Designer, and instanciate object from this class.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform