Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!microsoft!t-stephp From: t-stephp@microsoft.UUCP (Stephen Poole) Newsgroups: comp.sys.mac.programmer Subject: Palette question Message-ID: <5662@microsoft.UUCP> Date: 6 May 89 00:20:05 GMT Reply-To: t-stephp@microsoft.UUCP (Stephen Poole) Organization: Microsoft Corp., Redmond WA Lines: 17 I have put together my first custom clut and am having a bit of trouble getting my program to use it. I'm reading a GIF file (got tired of Giffer and Vision Lab crashing on me all the time) and have created a palette of 256 colors. The pmInfo array of ColorInfo records does appear to contain the values I have stored in it. I call SetPalette and assign the palette to my window. I then call ActivatePalette, thinking that this will make calls to PmForeColor use this palette. It doesn't seem to. My colors appear to be coming from the system palette. By calling GetPalette I can see that my window does have my palette associated with it, so I'm a bit confused as to what more I need to do. Any help or sample code would be appreciated. . -- -- Stephen D. Poole -- t-stephp@microsoft.UUCP -- Mac II Fanatic -- -- -- -- I'm just an Oregon Tech Software Engineering co-op at Micro- -- -- soft. Believe me, nobody here pays attention to my opinions! --