Path: utzoo!attcan!uunet!lll-winken!ames!ncar!unmvax!tut.cis.ohio-state.edu!bloom-beacon!earth.cray.COM!jlf From: jlf@earth.cray.COM (John Freeman) Newsgroups: comp.windows.x Subject: Label widget question Message-ID: <8901161913.AA09746@thelake.cray.com> Date: 16 Jan 89 19:13:17 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 31 I read in the Athena Widget manual that one could use a bitmap as a label instead of text. I could not find an example of using XtNbitmap in clients or contrib, so I took the code for xcommand.c in examples/Xaw and made the following changes: 1) changed -label to -bitmap static XrmOptionDescRec options[] = { {"-bitmap", "*bitmap", XrmoptionSepArg, NULL} }; 2) added a valid bitmap file name from /usr/include/X11/bitmaps to the argument list using XtNbitmap: static Arg args[] = { { XtNbitmap, (XtArgVal) "hobbes.bm" }, { XtNcallback, (XtArgVal)callbacks }, }; -------------------------------------------------------------------- I always get this X Protocol Error: X Protocol error: BadDrawable, invalid Pixmap or Window parameter Major opcode of failed request: 14 (X_GetGeometry) Minor opcode of failed request: 0 Resource id in failed request: 0x4005d Serial number of failed request: 15 Current serial number in output stream: 15 Is there something else I need to do?