Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!bloom-beacon!ANDREW.CMU.EDU!yt07+ From: yt07+@ANDREW.CMU.EDU (Yin-Cheng Tsai) Newsgroups: comp.windows.x Subject: Background Color Doesn't Work! Message-ID: Date: 31 Aug 88 03:18:15 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 22 Here is a simple question on SUN4/260, color monitor. However, it makes me like a crazy man. I create a composite widget on the toplevel(shell widget). After that, I put a text widget and a viewport widget on that composite widget just created. Although the XtNbackground property is set before I create the specific widget, the backgrounds of the result widgets are still the same as the one of their parent widget. Did I miss something important? Or, I misuse the XtCreateManagedWidget? I have tried to change the attribute of background by using XSetWindowAttributes after the widgets are realized. But the result is the same as before. Any advice is appreciated. Thanks in advance. By the way, how can I create a widget with a specific visual class? ================================ || Yin-cheng C. Tsai || || || || HBH 1214 || || EDRC || || Carnegie-Mellon University || || Pittsburgh, PA 15213 || || || || TEL : (412) 268-5215 || ================================