Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!ucbvax!bloom-beacon!osf.ORG!libby From: libby@osf.ORG Newsgroups: comp.windows.x Subject: Re: What am I missing? (UIL color/mono question) Message-ID: <9010312125.AA17868@osf.osf.org> Date: 31 Oct 90 21:25:44 GMT References: <0FB56146095F602D36@fccc.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 38 Dan wrote: > In a UIL file I have declared: > value > yellow : color('goldenrod',background); > red : color('firebrick',background); > These colors are referenced as the background colors for XmPushbuttons. On > a color Xterm, they appear as desired; on a monochrome Xterm, yellow appears > white, and read as black. I thought the "background" declaration above > specified the appearance on monochrome devices. What am I missing? Check section 2.5.2 and then 2.5.3.1 of the Uil manual. Note in 2.5.2 "COLOR function" it says "The string expression names the color you want to define; the optional keywords FOREGROUND and BACKGROUND identify how the color is to be displayed on a monochrome device when the color is used in the definition of a color table." The color table section 2.5.3.1 explains that color tables are used to express the colors for ICONS. When you have any widget which is set to a color then displayed on a monochrome monitor, the Toolkit figures out whether your color is more like black or white and displays it accordingly. So that's independent of the BACKGROUND and FOREGROUND specification. Try putting up the test (tests/uil/widgets)BBoard.uil on your monochrome and the icon and buttons should display this behavior (I'd try it too but all our monochromes are busy today...) Libby __________________________________________________________________ Libby Hanna - Motif QA Open Software Foundation libby@osf.osf.org Cambridge, MA (617) 621-8820 This is your brain. This is your brain with Traversal turned on. Any questions?