home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / acorn / tech / 1246 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.2 KB

  1. Path: sparky!uunet!pipex!unipalm!uknet!mucs!cs.man.ac.uk!gilbertd
  2. From: gilbertd@cs.man.ac.uk (David Alan Gilbert)
  3. Newsgroups: comp.sys.acorn.tech
  4. Subject: NULL events and 'txt' in RISC_OSLib
  5. Message-ID: <gilbertd.726828391@cs.man.ac.uk>
  6. Date: 12 Jan 93 08:46:31 GMT
  7. Sender: news@cs.man.ac.uk
  8. Lines: 22
  9.  
  10. Just a warning to all you who are using NULL
  11. events a lot.  As far as I can tell the 'txt'
  12. section of RISC_OSLib changes the event mask to 
  13. allow NULL events when you drag in a window (be it
  14. scroll bar or over the work area).  When it
  15. has finished it then sets the mask to IGNORE
  16. NULL's - no matter what the state previously.
  17.  
  18. So if your program relied on them a lot, your
  19. program suddenly stops any background activity.
  20.  
  21. The way I confirmed this was to print event_getmask()
  22. before I called event_process() - it suddenly became
  23. 1 after attempting to scroll the window with the
  24. scroll bar - and definitly with a click on the
  25. work area.
  26.  
  27. Dave
  28. --
  29. -------------------------------------------------------------------------------
  30. - David Alan Gilbert - gilbertd@cs.man.ac.uk - G7FHJ@GB7CRG                   -
  31. ------(Programmers don't sleep - they just park their heads)-------------------
  32.