home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!nih-csl.dcrt.nih.gov!FAXCSL!FIXER
- From: fixer@faxcsl.dcrt.nih.gov (Chris Spiral Catfish Tate)
- Subject: Spurious invalidation
- Message-ID: <1992Nov6.170232.21241@alw.nih.gov>
- Sender: postman@alw.nih.gov (AMDS Postmaster)
- Reply-To: fixer@faxcsl.dcrt.nih.gov
- Organization: Computer Systems Laboratory, DCRT, NIH
- Date: Fri, 6 Nov 1992 17:02:32 GMT
- Lines: 22
-
- Situation: modal dialog, System 7.0.1, Mac IIfx
-
- Problem: calling SetCTitle() (and possibly SetCtlValue()) on controls in the
- dialog is forcing an update. This is pretty bad in my case, since redrawing
- the dialog is rather time-consuming.
-
- Is this *really* what's happening? According to the THINK C debugger, I'm
- never calling InvalRect() or any of its relatives explicitly, but sure enough,
- my userItem update routines are getting called the next time through
- ModalDialog() after calling SetCTitle().
-
- Does anyone have any idea what's happening, and how I might go about preventing
- it? Calling ValidRect() on the slow-to-draw userItem's rectangle after the
- call to SetCTitle() doesn't seem to solve the problem; it's still updated.
-
- As always, thanks in advance for whatever light you can shed on this...
-
- ------------------------------------------------------------------------------
- Christopher Tate | The Leadfoot Collection, Continued:
- Management System Designers | * Red Barchetta (Rush)
- | * Old Time Rock And Roll (Bob Seeger)
- fixer@faxcsl.dcrt.nih.gov | Because driving fast is a cathartic experience.
-