home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!ceres.fokus.gmd.de!tom
- From: tom@fokus.gmd.de (Tom Pfeifer)
- Subject: Turbo Vision Color Palette
- Message-ID: <1992Aug14.111011.21807@fokus.gmd.de>
- Sender: news@fokus.gmd.de (News system)
- Organization: GMD-FOKUS, Hardenbergplatz 2, 1000 Berlin 12, Germany
- Date: Fri, 14 Aug 1992 11:10:11 GMT
- Lines: 26
-
-
- I would appreciate some help with saving the color palette in Turbo Vision.
- As I already learned the palette string differs from C style having the length
- stored in the first byte.
-
- I tried the following in a member function inheriting getPalette() from TApplication:
-
- char myPalString[256];
- TPalette * xx = (TPalette *) myPalString;
- *xx = getPalette();
-
- According to TFM the overloaded operator = should copy the string. All I get is 4 bytes
- for the complete application. Can't be all.
- When I try:
-
- getPalette() = *xx;
- redraw();
-
- the colors are messed up completely.
-
- Tnx for help
- Tom
-
- BTW, does getPalette() work with all three palettes (color, mono, b/w) or do I have
- to switch the modes before access?
- Tom
-