home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!caen!uwm.edu!biosci!agate!stanford.edu!kronos.arc.nasa.gov!iscnvx!netcomsv!netcom.com!danwood
- From: danwood@netcom.com (Daniel J Wood)
- Newsgroups: comp.os.msdos.programmer
- Subject: How to "save" behind window in graphics mode?
- Summary: How to save under window, if in graphics mode?
- Keywords: Window Dos Graphics text save behind
- Message-ID: <1992Nov6.183318.5344@netcom.com>
- Date: 6 Nov 92 18:33:18 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Lines: 15
-
- I'm an inexperienced DOS programmer, so please forgive any stupidity...
-
- I have a little "windowing" package I've written; when you open up a window
- on top of another, it saves the contents of the window(s) behind it by
- reading the ASCII/color bytes from the display buffer, and socks it away
- for restoration after the window is closed. THE PROBLEM is that this technique
- only would work in "text" mode, not in one of the various graphics modes
- where characters are painted to the screen.
-
- Short of saving much larger graphic buffers when opening up a window on a
- graphics screen, what might I do to preserve windows behind? Does the text &
- color information get shadowed somewhere that I can read? Should I write
- output rroutines that do some sort of shadowing myself? Or perhaps abandon
- the whole plan and write my program such that windows get "update" events
- as on the Mac? Any suggestions would be appreciated.
-