home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!uwm.edu!caen!sol.ctr.columbia.edu!ira.uka.de!uka!s_titz
- From: s_titz@ira.uka.de (Olaf Titz)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Help updating windows
- Message-ID: <1de8rtINNe7e@iraul1.ira.uka.de>
- Date: 6 Nov 92 17:09:17 GMT
- Article-I.D.: iraul1.1de8rtINNe7e
- References: <1338@my.sm.luth.se>
- Organization: Fachschaft math/inf, Uni Karlsruhe, FRG
- Lines: 29
- NNTP-Posting-Host: irau32.ira.uka.de
-
- In article <1338@my.sm.luth.se> matti@my.sm.luth.se (Matti Larborn) writes:
- >You can use two updating modes for windows in the toolbox.
- >
- > 1) Each time an update event occurs you redraw the content of the window
- >requested.
- >
- > 2) You set the window picture to a pict. The toolbox will now redraw the
- >windows contents each time it is needed.
- >
- >How should this second approach be implemented?
-
- It should not be implemented at all if you want a window changing
- regularly. The window picture is intended mainly for the purpose that
- it be set to a fixed thing, like a splash/info/About/background
- window.
-
- For regular document-displaying windows, the first method should be
- used. If you worry about performance: Rebuilding a picture in
- background and then redrawing it (as you suggested) takes more memory
- and CPU time and is therefore LESS efficient than drawing the picture
- 'live' while updating.
-
- olaf
-
- --
- --
- o Olaf Titz - comp.sc.student - univ of karlsruhe - germany
- _ /<_ s_titz@iravcl.ira.uka.de - uknf@dkauni2.bitnet - praetorius@irc
- (_)>(_) +49-721-60439 - did i forget something?
-