home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / programm / 10409 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.2 KB  |  25 lines

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