home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / acorn / 7975 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  2.1 KB

  1. Path: sparky!uunet!mcsun!uknet!cam-cl!news
  2. From: crj10@phx.cam.ac.uk (Clive Jones)
  3. Newsgroups: comp.sys.acorn
  4. Subject: Re: IconFlag "NeedsHelpToBeRedrawn"
  5. Message-ID: <1992Jul21.193940.14866@cl.cam.ac.uk>
  6. Date: 21 Jul 92 19:39:40 GMT
  7. References: <1161@grun.is> <1992Jul18.003035.23890@cs.aukuni.ac.nz> <1162@grun.is>
  8. Sender: news@cl.cam.ac.uk (The news facility)
  9. Organization: The National Society for the Inversion of Cuddly Tigers
  10. Lines: 37
  11.  
  12. In article <1162@grun.is> thsa@grun.is (Thorvaldur S. Arnarson) writes:
  13. >jwil1@cs.aukuni.ac.nz (TMOTA) writes:
  14. >>thsa@grun.is (Thorvaldur S. Arnarson) writes:
  15. >>>I've been trying to figure out what happens when the "NeedsHelpToBeRedrawn"
  16. >[stuff deleted...]
  17. >>I think this means that to get any effect you must have needs-help set in
  18. >>the icon, AND auto-redraw turned off in the window.
  19. >
  20. >I allways thoght the NeedsHelp bit was a means to get redraw requests for
  21. >a small portion of the screen, but as I have now found out it works
  22. >something like this:
  23. >  o If the AutoRedraw bit of the window is on this bit produces no effect
  24. >    at all!
  25. >  o If AutoRredraw is set the area under the icon is redrawn regardless of
  26. >    NeedsHelp.
  27. >  o If NeedsHelp and Autoredraw are set and SWI "Wimp_SetIconState" is
  28. >    executed a redraw request is issued for the area behind the icon.
  29. >
  30. >In my oppinion this behaviour is rather mildly usefull.  It would have
  31. >given more exact control over redraws if this bit caused redraw requests
  32. >for the iconarea in an AutoRedraw window. 
  33.  
  34. No - this is a useful thing to happen. If you think about it, you'll
  35. realise that the alternative isn't actually very useful.
  36.  
  37. If the NeedsHelp bit meant "Send redraw requests whenever this icon
  38. needs redrawing", then you would be fed a redraw request for the
  39. window, to which you would have to respond by asking for rectangles to
  40. redraw.
  41.  
  42. But why is this any more useful than clearing the AutoRedraw flag on
  43. the entire window? In that case you would merely be sent redraw
  44. requests for larger bits of your window. Since you wouldn't be
  45. plotting anything anywhere except at this icon's location, there would
  46. be no speed increase, and no added complexity of coding.
  47.  
  48. --Clive.
  49.