Path: utzoo!attcan!uunet!aplcen!samsung!know!sdd.hp.com!hplabs!hpfcso!hpfcbig!jcw From: jcw@hpfcbig.SDE.HP.COM (Judy Walker) Newsgroups: comp.windows.x.motif Subject: PushButton Pixmap problems Message-ID: <12110003@hpfcbig.SDE.HP.COM> Date: 16 Oct 90 16:50:47 GMT Organization: HP SESD, Fort Collins, CO Lines: 27 I am having a problem now with using the PushButton capabilities to display a pixmap image. I read a pixmap file using XReadBitmapFile, set the XmNlabelPixmap resource to the pixmap, and set the argument XmNlabelType to XmPIXMAP. When the server tries to display it, I receive this message: Received fatal error from window system: BadMatch, invalid paramete r attributes I am doing everything that I know about by the book. What could be wrong? Any ideas would be appreciated. Here is the code: status = XReadBitmapFile(dpy, RootWindow(dpy, scr), real_path, &width, &height, &pix, &x_hot, &y_hot); XtSetArg(arglist[*n], XmNlabelPixmap, (XtArgVal) pix); (*n)++; XtSetArg(arglist[n], XmNlabelType, (XtArgVal) XmPIXMAP); n++; An XtSetValues is done later.