Article View: alt.msdos.programmer
Article #385Palette changing in Turbo Vision (TC++)
From: Dave Sisson
Date: Thu, 13 Aug 1992 15:15
Date: Thu, 13 Aug 1992 15:15
16 lines
1142 bytes
1142 bytes
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
Technical Details
Message-ID:
<5637@vtserf.cc.vt.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!vtserf!vtucs.cc.vt.edu!davesShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <5637@vtserf.cc.vt.edu> Date: 13 Aug 92 15:15:30 GMT Sender: news@vtserf.cc.vt.edu Organization: Virginia Tech, Blacksburg, VA Lines: 16