home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!stanford.edu!leland.Stanford.EDU!Ramon.M.Felciano
- From: felciano@summit.stanford.edu (Ramon M. Felciano)
- Subject: Toolbox for elegant, multi-bitdepth Update handling?
- Message-ID: <1992Nov13.003200.8020@leland.Stanford.EDU>
- X-Posted-From: InterNews1.0a5@leland.stanford.edu
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: Stanford University Medical Media and Information
- Technologies
- Date: Fri, 13 Nov 92 00:32:00 GMT
- Xdisclaimer: No attempt was made to authenticate the sender's name.
- Lines: 32
-
- Hi --
-
- Has anyone come up with a good scheme for handling elegant window
- updating, especially across different screens?
-
- For example, I've started to include B/W and Color versions for all of
- the PICTs in my dialogs; when creating a dialog, I check the depth of
- the monitor and set the appropriate pictures for that dialog.
-
- Things are getting a bit harrier with windows, tho. In particular, if I
- have a colored background on a window, it doesn't look too hot on a B/W
- screen, so I'd like it to be a shade of gray (pattern). How do I handle
- this for windows that span several screens? It seems like I'll have to
- loop through each device, and if any part of the window overlaps there,
- I'll need to draw _that rectangle_ in that screen at the correct bit
- depth. Ugh!
-
- Isn't there a cleaner way to do this? What I'd like is for my window to
- get a series of Update calls along with a bit-depth setting. In
- addition, the caller would set the clipRect for me, so that I can
- freely redraw the entire window rather than having to calculate which
- window elements should actually be drawn. Anyone have any ideas?
-
- Thanks!
-
- Ramon
-
- +----------------------------------------------------------------+
- | Ramon M. Felciano felciano@summit.stanford.edu |
- | Associate Director, SUMMIT (415) 723-9688 |
- | Stanford University Medical Media and Information Technologies |
- +----------------------------------------------------------------+
-