darken@seas.gwu.edu (Rudolph Darken) (04/20/91)
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. Thanks. Rudy darken@seas.gwu.edu
fgreco@govt.shearson.COM (Frank Greco) (04/22/91)
> 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.
morgaine@polluce.sublink.org (Nadia Pitacco) (04/22/91)
in article <3088@sparko.gwu.edu>, darken@seas.gwu.edu (Rudolph Darken) says: > > I've got some sample Xview code which has the function > gcm_initialize_colors(canvas, "black", "white") in it. > What does this do? It is part of a library of functions that, according to my manuals, are distributed with the OpenWindows Developer's Guide 1.1 product. They are distributed as is, with no technical support from Sun. The function gcm_initialize_colors() has the following syntax: void gcm_initialize_colors (window, bg_color, fg_color) and sets up the standard GUIDE colormap for "window" and all inherited items of that window. I don't know if SUN has included it in it's OpenWindows 2.0 environment ---------------------------------------------------- | Informatica Sistemi S.p.A | ////////////// | via Mercantesse, 3 | // I.S. // | 20021 Baranzate MI (Italy) | ////////////// | | | E-Mail : morgaine@polluce.SUBLINK.ORG | ----------------------------------------------------