home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / alt / msdos / programm / 2184 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  1.1 KB

  1. Path: sparky!uunet!vtserf!vtucs.cc.vt.edu!daves
  2. From: daves@vtucs.cc.vt.edu (Dave Sisson)
  3. Newsgroups: alt.msdos.programmer
  4. Subject: Palette changing in Turbo Vision (TC++)
  5. Message-ID: <5617@vtserf.cc.vt.edu>
  6. Date: 12 Aug 92 19:29:25 GMT
  7. Sender: usenet@vtserf.cc.vt.edu
  8. Organization: Virginia Tech, Blacksburg, VA
  9. Lines: 16
  10.  
  11.  
  12.      I've been able to change the palette using the TColorDialog object, but
  13. after the palette is changed, I want to redraw the entire application.  I
  14. tried the TApplication::redraw() command like they do in tvdemo, but the 
  15. screen keeps the same colors.  Anything I create after changing the palette
  16. gets the proper colors.
  17.      Trying to see what they did in the demo that I didn't, I compiled and
  18. ran it.  It exhibits the same problems.  I went back to Turbo Pascal and
  19. tried its tvdemo and it worked.  The C++ version uses redraw() and the Pascal
  20. version does DoneMemory then ReDraw.  I can't find an analog function for
  21. DoneMemory under C++.  redraw() isn't supposed to use the buffers anyway, 
  22. so DoneMemory would be a useless call.  Is there a workaround for this
  23. problem?
  24.  
  25. --
  26.     Dave
  27.