Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!uunet!crdgw1!nepal.crd.ge.com!laymon From: laymon@nepal.crd.ge.com Newsgroups: comp.windows.x Subject: push button widget & reverse video question Message-ID: <6194@crdgw1.crd.ge.com> Date: 20 Mar 90 19:56:10 GMT Sender: news@crdgw1.crd.ge.com Reply-To: laymon@nepal.crd.ge.com () Distribution: usa Organization: General Electric Corp. R&D, Schenectady, NY Lines: 25 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