[comp.windows.x] strange xview menu behavior

walsh@xn.ll.mit.edu (Michael Walsh) (11/16/90)

I'm having a menu appearance problem with an xview client program.  I'm
using Openwindows Release 2 on a Sun 3/60 with a color monitor.

I have reproduced the problem behavior running the example1 example
program in {OPENWINHOME}/share/src/sun/xview/examples/color.

The behavior is that the for the first popup of the menu in the TEXTSW
window, the foreground and background colors are that of the TEXTSW
window.  On the second "popping up" of the menu, the background color is
that of the window manager's frame and the foreground color is that of
the second color in the color map segment.

To make the problem even worse, the menu choices (text in this case) is
not seen until the mouse passes over each menu item.

If you can offer any insight into this problem, or even better, if you
have found a solution to the problem, please respond to
walsh@xn.ll.mit.edu.



Any comments on the following will be gratefully accepted:

My understanding of menus in xview is that they do not have color
attributes, that their parent can only be the (a) server and that they
are "control" objects which means they cannot have their colors
programmatically modified.  (I arrived at this after reading the Xview
programmers manual.)

This leads me to believe that the Server is responsible for consistent
behavior of menu color.

-mike-