Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!olivea!mintaka!bloom-beacon!dont-send-mail-to-path-lines From: fgreco@govt.shearson.COM (Frank Greco) Newsgroups: comp.windows.x Subject: Re: Xview: gcm_initialize_colors(), What is it? Message-ID: <9104221344.AA00901@fis1.shearson.com> Date: 22 Apr 91 13:44:43 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 20 > I've got some sample Xview code which has the function > gcm_initialize_colors(canvas, "black", "white") in it. > What does this do? I'm at a crucial step in my program > where I'm switching from Xview to X and I need to know > the status of my windows as far as size, foreground, > background. This is not in the Xview manual but it > seems to run fine. I just don't know what it does. This is a function in libguidexv.a which you get when you license Sun's OPENLOOK-based UI builder, devGUIDE (btw, you get the src for this lib too). It's a way of setting the foreground and background color of an object in XView (btw, panels ignore the background color). Unfortunately, the current version of devGUIDE only allows the R3 colors, but since you have the src to devGUIDE's color-setting routines its pretty straightforward to add the R4 ones if you wish. Frank G.