Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!snorkelwacker!bloom-beacon!ZIA.AOC.NRAO.EDU!cflatter From: cflatter@ZIA.AOC.NRAO.EDU (Chris Flatters) Newsgroups: comp.windows.x Subject: Re: XView 2.0 bug (?) -- foreground and background colors Message-ID: <9010041702.AA25572@zia.aoc.nrao.edu> Date: 4 Oct 90 17:02:20 GMT Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 35 > As far as I can tell, XView panels ignore the Window.Color.Background > resource described in the XView man page. They also ignore the > -Wb and -g command line options. Yes. This is not a bug. XView panels take their background colour from OpenWindows.WindowColor. This is so that they blend in with the window decoration applied by OPEN LOOK window manager. The window decoration and panel backgrounds are lumped together as the "window background" in the OPEN LOOK UI specification (see Chapter 3). Making them different colours would probably make your application non-conforming. Remember that if you want to use XView you are implicitly buying into the OPEN LOOK GUI. > And another thing -- isn't it stupid not to be able to make the background > color of a panel item different from the background color of the panel? Only if you want to do it :-) Although the OPEN LOOK functional spec. says that applications can specify the colours of individual controls (p204) this would cause a few problems in 3D OPEN LOOK implementations: you would actually need three new colours to do this (chosen colour, chosen colour + 10-15% black and chosen colour + 50% black). One possible reading of the functional spec. (but not the most intuitive) is that only the foregrounds of panel items can be changed. If you really want to do this, ask Sun for it; if there is enough demand they will get around to providing it. If you are really desperate for it UTSL. BTW. the OPEN LOOK function spec says that facilities for changing panel item colours should be used sparingly. Chris Flatters.