Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!decwrl!adobe!asente From: asente@adobe.com (Paul Asente) Newsgroups: comp.windows.x Subject: Re: Applying color resources to private colormaps Message-ID: <16261@adobe.UUCP> Date: 10 Jun 91 19:40:10 GMT References: <218@yak.COM> Sender: news@adobe.COM Distribution: usa Organization: Adobe Systems Inc. Lines: 21 In article <218@yak.COM> wam3090@yak.COM (Bill Massena) writes: >I have an application which creates a private colormap, and allocates >colors in it. If I put > > *Background: wheat > >in my resource file, a color cell is reserved in the default colormap, in >a slot which may conflict with an entry in the private colormap. Not quite. The color cell is stored in the widget's colormap, whatever it is at the time the string is converted to a pixel value. You need to make sure your colormap is installed in the widget at the very beginning, by specifying an argument to the creation routine that specifies your private colormap. -paul asente asente@adobe.com ...decwrl!adobe!asente Ratz put a bucket of liquid in front of me. "I wanted a glass of docs, Ratz. What the hell is this?" I barked. "Motif don't fit in a glass anymore," he barked back. I looked at the liquid. It was totally opaque to me.