🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.msdos.programmer
1 messages
1 total messages Started by Dave Sisson Thu, 13 Aug 1992 15:15
Palette changing in Turbo Vision (TC++)
#385
Author: Dave Sisson
Date: Thu, 13 Aug 1992 15:15
16 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads