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