kbj@jupiter.risc.com (Ken Johnson) (12/05/90)
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. Ken Johnson Phone: 805-373-4487 Rockwell International Science Center Comnet: 273-4487 1049 Camino Dos Rios A-18 FAX: 805-373-4383 Thousand Oaks, CA 91360 e-mail: kbj@risc.com Theorem 1: Anything can be proven by statistical methods if enough data is gathered..... Ken's corollary: If you don't have any idea what to do with the data train a network....
dmaustin@vivid.sun.com (Darren Austin - I will not instigate revolution) (12/06/90)
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 |