Text File | 1995-08-28 | 537 b | 4 lines | [TEXT/ttxt]
LDelayedTask
by Éric Forget <forgete@vir.ca>
LDelayedTask is an abstract class to execute a task after a certain period of time. This class is not really precise: it use TickCount() as a time measure. On another side, you can do about all you want in the ExecuteSelf() method. One example of its use, is to implement a "Find" in a list or table, a la Metrowerks IDE. Each time the user press a key, you call RestartTask(). When the user will not have pressed a key for a determined period, you do the search in the ExecuteSelf() method.