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