yt07+@ANDREW.CMU.EDU (Yin-Cheng Tsai) (08/31/88)
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 || ================================
swick@ATHENA.MIT.EDU (Ralph R. Swick) (08/31/88)
Date: Tue, 30 Aug 88 23:18:15 -0400 (EDT) From: Yin-Cheng Tsai <yt07+@andrew.cmu.edu> 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. There was a bug in the AsciiText widgets corrected by fix #28 which should have solved this problem for Text. The Viewport widget is supposed to be completely obscured by its children, so it ignores it's background resource. This bug will be fixed in the next release.