Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!relay.nswc.navy.mil!oasys!roth From: roth@oasys.dt.navy.mil (Pete Roth) Newsgroups: comp.lang.pascal Subject: Re: Colours in Turbo Vision Message-ID: <7189@oasys.dt.navy.mil> Date: 19 Apr 91 12:12:56 GMT References: <714@sun4dts.dts.ine.philips.nl> Reply-To: roth@oasys.dt.navy.mil (Pete Roth) Organization: David Taylor Research Center, Bethesda, MD Lines: 29 In article <714@sun4dts.dts.ine.philips.nl> derek@sun4dts.dts.ine.philips.nl (derek) writes: >When I insert a TListBox or derivative into a TWindow or derivative (actually >TScroller) the only colour I can get is bright white on red. According to >the Tvision additional document on disk, this means that it is not mapping >correctly. I have had a lot of trouble understanding this colour mapping. The >manual is just not very clear at all. I agree with you about the color mapping - what a kludge! However, you might look at Ch 4 of the tvision manual in the section entitled 'what color is your view?'. Check from there to the end of the chapter. The last section has an example in the section 'adding new colors'.a In the first example it shows the line CMyWindow = CBlueWindow + #84 ; The #84 in this line is the _contents_ of an additional color in the palette. Whatever #84 is, is also a mystery, but can be decoded to be bright white on red. The next example has the line CScroller = #6#7#9 ; The #6#7#9 on this line indicates _where_ in the palette your colors _are_. Presumably, the TProgram unit stops mapping _locations_ when the @self is pointing to your App, at which point it starts mapping _colors_. egads. Hope this helps... - - - - - - - - - - - - - - - - - - - - - - - - - - Peter N Roth roth@oasys.dt.navy.mil Objects in this office are closer than they appear.