home *** CD-ROM | disk | FTP | other *** search
- Method for using pointer entering and leaving window events:
-
- When task starts, get current window handle.
-
- In loop:
-
- 1. Wait for Leaving Window event (any window, not just the current one).
- 2. Note the time
- 3. Wait for Entering Window event
- 4. While the time is not up, change the next window handle at each event, but
- still remember the original window
- 5. When the time is up, switch to the next window (if appropriate), or remain
- in the current window if not. Go back to 1.
-
- This will need a filter, and mean that the program only works on RO3 (so
- should include a note to that effect when it's uploaded).
-
- Problem: to do this properly, need a pre-filter to make *every* task want to
- receive the messages, and then a post-filter to process them. To be nice, one
- ought to claim the event for tasks which didn't want to know about the
- messages (though well-written tasks shouldn't mind). This means storing the
- task id of every task that calls Wimp_Poll, and whether it wanted the events,
- and then checking in the post-filter against the task id and flags. This
- needs memory allocation.