home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / programm / 10389 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.5 KB

  1. 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
  2. From: danwood@netcom.com (Daniel J Wood)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: How to "save" behind window in graphics mode?
  5. Summary: How to save under window, if in graphics mode?
  6. Keywords: Window Dos Graphics text save behind
  7. Message-ID: <1992Nov6.183318.5344@netcom.com>
  8. Date: 6 Nov 92 18:33:18 GMT
  9. Organization: Netcom - Online Communication Services  (408 241-9760 guest)
  10. Lines: 15
  11.  
  12. I'm an inexperienced DOS programmer, so please forgive any stupidity...
  13.  
  14. I have a little "windowing" package I've written; when you open up a window
  15. on top of another, it saves the contents of the window(s) behind it by
  16. reading the ASCII/color bytes from the display buffer, and socks it away
  17. for restoration after the window is closed. THE PROBLEM is that this technique
  18. only would work in "text" mode, not in one of the various graphics modes
  19. where characters are painted to the screen.
  20.  
  21. Short of saving much larger graphic buffers when opening up a window on a
  22. graphics screen, what might I do to preserve windows behind? Does the text &
  23. color information get shadowed somewhere that I can read? Should I write
  24. output rroutines that do some sort of shadowing myself? Or perhaps abandon
  25. the whole plan and write my program such that windows get "update" events
  26. as on the Mac?  Any suggestions would be appreciated.
  27.