Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: menu with installed colormap Message-ID: <9009261219.AA09482@expire.lcs.mit.edu> Date: 26 Sep 90 12:19:21 GMT References: <1990Sep14.222840@cellar.bae.bellcore.com> Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 21 In CvtStringToPixel(), if the color string is anything other than XtDefaultForeground or XtDefaultBackground then the currently installed colormap is used. Why is the currently installed colormap ignored for these two strings? These two values should only be used with the default colormap. No other colormap contains "default" pixel values defined for this purpose. Is this a bug in the Intrinsics? It isn't very well documented, but I'd say no. Now, it may well be a "misfeature". I suppose you could argue that these values should arbitrarily default to something when the colormap isn't the default colormap, perhaps "black" and "white", or perhaps the result of looking up two resources in the resource database. Please note that the default fg/bg in the default colormap are not necessarily black and white. You haven't said what semantics you think should be applied in the non-default colormap case, so I don't know what you really want. You're welcome to propose something (whether anyone will really listen, I don't know :-).