Path: utzoo!attcan!uunet!peregrine!elroy.jpl.nasa.gov!usc!julius.cs.uiuc.edu!apple!sun-barr!newstop!exodus!dmaustin From: dmaustin@vivid.sun.com (Darren Austin - I will not instigate revolution) Newsgroups: comp.windows.open-look Subject: Re: Colors in XView Message-ID: Date: 5 Dec 90 22:03:40 GMT References: <8qlyclu@openlook.Unify.Com> Sender: news@exodus.Eng.Sun.COM Organization: Sun Microsystems, Mountain View Lines: 36 In-reply-to: kbj@jupiter.risc.com's message of 4 Dec 90 21:56:17 GMT In article <8qlyclu@openlook.Unify.Com> kbj@jupiter.risc.com (Ken Johnson) writes: How do I get the color the window manager uses for the frame border? I want to get this color and use it to define the background of the frame. I suppose this will set the frames background the same as that used by the panels. At least I hope it will. You can get the same color as the window manager's frame and the panel by creating a control colormap segment, and setting it on the frame after it is created. For example: Frame frame; Cms cms; ... cms = (Cms)xv_create(NULL, CMS, CMS_CONTROL_CMS, TRUE, CMS_SIZE, CMS_CONTROL_COLORS + 1, CMS_NAMED_COLORS, "black", NULL, NULL); xv_set(frame, WIN_CMS, cms, NULL); This will set the background of the frame to be the color that you want. Hope this helps, --Darren -- Darren Austin | Actually, it's a buck and a quarter Windows and Graphics Software | staff, but I'm not going to tell Sun Microsystems, Mountain View | *him* that. dmaustin@sun.com |