Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!phigate!ehviea!sun4dts!derek From: derek@sun4dts.dts.ine.philips.nl (derek) Newsgroups: comp.lang.pascal Subject: Colours in Turbo Vision Summary: TListBox in TWindow - how to set the colour? Keywords: Color TP6.0 Turbo Vision Dialog Message-ID: <714@sun4dts.dts.ine.philips.nl> Date: 17 Apr 91 10:00:43 GMT Distribution: comp Lines: 20 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. Does this really mean that I am not supposed to be using TListBox derivatives in a Twindow, only in a TDialog? I can presumably use a non-modal TDialog, but that means I have to have the scrollbars on the inner box instead of what I consider the more natural outer window frame. (I don't need any buttons or input boxes. I'll specify the listbox as bounds-1 of the dialog box in X and Y, and grow as gfGrowHiX OR gfGrowHiY.) So do I override the window getpalette method to map to dialog colours, or do I use a non-modal dialog box? If I use a Twindow, am I going to have any problems returning selected information to the desktop? Best Regards, Derek Carr DEREK@DTS.INE.PHILIPS.NL Philips I&E TQV-5 Eindhoven, The Netherlands Standard Disclaimers apply.