Path: utzoo!attcan!uunet!lll-winken!ames!pasteur!ucbvax!bloom-beacon!ATHENA.MIT.EDU!jik From: jik@ATHENA.MIT.EDU ("Jonathan I. Kamens") Newsgroups: comp.windows.x Subject: XSetWindowAttr. ,XWindowAttr structures not symetric Message-ID: <8905100036.AA01409@PIT-MANAGER.MIT.EDU> Date: 10 May 89 00:36:58 GMT References: <8905082300.AA04850@ATHENA.MIT.EDU> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 22 Date: 8 May 89 18:59:57 EDT From: Francois.Bitz@sam.cs.cmu.edu How would I go about if I wanted to print text in Reverse Video,... in a window without knowing what the foreground/background colors are for the particular window ? First of all, a window does not have a foreground color associated with it, only a background color. Graphics Contexts are what have foreground colors. Second, presumably you are only going to be drawing in windows that you've created with your application, since it is usually considered somewhat rude to draw in windows that belong to other programs. Since you've created the window, shouldn't you know what its foreground and background colors are? Jonathan Kamens USnail: MIT Project Athena 410 Memorial Drive, No. 223F jik@Athena.MIT.EDU Cambridge, MA 02139-4318 Office: 617-253-4261 Home: 617-225-8218