[comp.windows.x] XtNforeground & XtNbackground

po@cs.utexas.edu (Po Ling Cheung) (01/11/89)

Can one use XtGetValues to retrieve the values of XtNforeground
and XtNbackground of a realized widget?

And what are the values of XtDefaultForeground and XtDefaultBackground?

Thanks,
  Po  (po@cs.utexas.edu)

asente@decwrl.dec.com (Paul Asente) (01/11/89)

In article <4540@cs.utexas.edu> po@cs.utexas.edu (Po Ling Cheung) writes:
>Can one use XtGetValues to retrieve the values of XtNforeground
>and XtNbackground of a realized widget?

Absolutely.  You can even get them for an unrealized widget the same way.

>And what are the values of XtDefaultForeground and XtDefaultBackground?

From section 9.6.1 of the R3 manual, XtDefaultForeground is the BlackPixel
of the screen, nad XtDefaultBackground is the WhitePixel of the screen.
Note that these may not be black and white, depending upon how the server
was initialized, and that setting reverse video for the application
results in the sense of these being exchanged.

	-paul asente
	    asente@decwrl.dec.com	decwrl!asente