[comp.windows.x] Xmh text panes are blank when running in inverse video mode

casey@COGNET.UCLA.EDU (11/16/88)

  The subject just about says it all.  I run with ``*ReverseVideo:on'' in
my resources database (this causes everything to run in reverse video).
When I start up xmh, the various windows, buttons, scroll bars, etc. are
all drawn correctly except the text panes never show any text.  They seem
to be trying to draw black characters on the [black] background.  This
only affects the text panes.  The button boxes, label boxes and scroll
bars all figure the reverse video out properly.

  I've tried going through the sources to xmh to find this problem and
spare the list yet another ``HELP!!'', but I think I'm going to throw in
the towel.  Can anyone offer a fix for this?  Thanks!!

Casey

P.S.  If I run ``xmh -xrm \*foreground:white'', the text panes start
    working, but the scroll bars stop displaying correctly (the white
    position turd is shown on a white background).

P.P.S.  Shouldn't widgets handle the reverse video class all by themselves
    without any help from their callers?

converse@EXPO.LCS.MIT.EDU (Donna Converse) (11/17/88)

	I run with ``*ReverseVideo:on'' in
	my resources database (this causes everything to run in reverse video).
	When I start up xmh, the various windows, buttons, scroll bars, etc. are
	all drawn correctly except the text panes never show any text.

An immediate way to work around this problem is to put the
following lines in your resource database file:

*reverseVideo:	on
xmh*Text*background:	black
xmh*Text*foreground:	white

	P.P.S.  Shouldn't widgets handle the reverse video class all by themselves
	    without any help from their callers?

Yes.   (But it is not a ``class''.  It is a resource of a widget.)		


Donna Converse
MIT X Consortium