[comp.windows.x] XView - can one set the background color of Panel Buttons?

shore@epiwrl.EPI.COM (John Shore) (08/16/90)

Is there a way to control the (background) color of XView Panel
Buttons?

Here's the behavior we see: 

The attribute PANEL_ITEM_COLOR affects the color of the button outline
and the color of the PANEL_LABEL_STRING. The background color of the
button, however, appears always to be controlled by the user -- i.e.,
it defaults to the color of the frame decorations (WindowColor), which
is under the control of the window manager (and therefore the end
user).  If you set the background color of the panel with
WIN_BACKGROUND_COLOR, the buttons themselves are unaffected.

This behavior applies to 2.0 (as well as the previous releases).  

There are three possibilities (in order of what I hope is the case!):

(1) We are overlooking something.  

(2) We are not overlooking something, and the current behavior is a
bug.  

(3) We are not overlooking something, and the current behavior is
intentional, perhaps owing to something in the OpenLook spec.  

It's hard to see that the current behavior is "right".  If the color
of buttons within control panels is outside of the designers control,
the results can be ugly.  Worse, it makes PANEL_ITEM_COLOR almost
unusable.  For example, we had an "Execute" button painted in green.
But then a user select window decoration colors that made the
"Execute" text almost impossible to read (e.g., green against dark
green).  

Any information or advice would be appreciated.  

John Shore
Entropic Research Laboratory
shore@wrl.epi.com
...uunet!epiwrl!shore

js