Path: utzoo!attcan!uunet!husc6!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: Problem in displaying XtNbitmap in a label widget Message-ID: <8812201345.AA24341@EXPO.LCS.MIT.EDU> Date: 20 Dec 88 13:45:35 GMT References: <4360@cs.utexas.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 8 xlogo = XtCreateManagedWidget("xlogo", labelWidgetClass, toplevel, NULL,0); XtSetArg(args[0], XtNbitmap, XCreateBitmapFromData (XtDisplay(xlogo), XtWindow(xlogo), xlogo16_bits, xlogo16_width, xlogo16_height)); The problem is that XtWindow(xlogo) returns 0, not a valid window id. X widget doesn't get a window until it's realized. The simplest thing is to instead use the root window of the screen.