[futurebasic] Slow Mouse Response, TIMER actions

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1999 : Group Archive : Group : All Groups

From: scram@... (Stu Cram)
Date: Thu, 10 Jun 1999 06:48:45 -0700
1. I had the same problem of slow mouse response when updating an old
program and solved it by removing all ON statements when using HANDLEEVENTS
in the program. I tell my students now not to use the ON/OFF commands and
let HANDLEEVENTS do that for our programs.

2. Turning the TIMER actions on or off can be simulated with a global
variable that is set when you open a window to indicate whether the timer
events is to take place for that window. Or you can have a doTimer
functions that determines which window is open with the WINDOW() function
and then uses SELECT/CASE to do different timer actions for each window. I
found the latter way easy to do in short programs with just a few windows
as all details were in one place.

Hope this helps.
- Stu Cram, FW Johnson Collegiate, Regina, Sask. Canada