Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!src.honeywell.com!msi.umn.edu!sctc.com!pasturel From: pasturel@sctc.com (Pierre Pasturel) Newsgroups: comp.windows.x.motif Subject: topShadowPixmap resource Summary: problem with topShadowPixmap Keywords: topShadowPixmap Message-ID: <1990Nov30.184937.6208@sctc.com> Date: 30 Nov 90 18:49:37 GMT Distribution: comp.windows.x.motif Organization: Secure Computing Technology Corporation Lines: 27 When setting XmNtopShadowPixmap to NULL in my application program in order to set XmNtopShadowColor, I get the following error message: X Error of failed request: BadPixmap (invalid Pixmap parameter) Major opcode of failed request: 55 (X_CreateGC) Minor opcode of failed request: 0 Resource id in failed request: 0x60006a Serial number of failed request: 296 Current serial number in output stream: 312 When setting XmNtopShadowPixmap to NULL in my application defaults file I don't get an error message. Does anyone know what's going on here?? I want to set the border colors for a XmText widget which inherits the XmPrimitive XmNtopshadowColor and XmNtopshadowPixmap resources. The Motif1.0 programmer's guide says to set XmNtopshadowPixmap to NULL if the color specified by XmNtopshadowColor is to be used. It works fine if I set it to NULL in an .Xdefaults or applicationdefaults file, but not in my application source program. Any help would be greatly appreciated. Pierre pasturel@sctc.com