laymon@nepal.crd.ge.com (03/21/90)
I am teaching myself about the X toolkit by working my way through
"X Window Systems Programming" by Douglas Young. I am trying to get
the push button widget example on page 76 to work. My problem is that the
button label does not show up when I have my screen in ReverseVideo
mode (white letters on black background). I set ReverseVideo for all
applications by including the line
*ReverseVideo: on
in a file I load into the resource database using xrdb. If I turn
ReverseVideo off, the button label shows up fine. I have tried setting
the foreground to white using XtSetArg to load a resource array to pass
to XtCreateManagedWidget, but that has no effect. I have another program
that uses commandWidgets where the labels show up fine in ReverseVideo.
Can any one offer any suggestions as to what I need to do to get push
button widgets to display their labels in ReverseVideo ?
One other question. When the label does show up, the widget uses the string
passed as the name of the widget, even when I have tried to set the resource
XtNlabel using XtSetArg. Why ?
Marc Laymon E-MAIL: laymon@nepal.crd.ge.com
GE R&D
Schenectady, NY