Path: utzoo!utgpu!watmath!att!ucbvax!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!converse From: converse@EXPO.LCS.MIT.EDU (Donna Converse) Newsgroups: comp.windows.x Subject: Re: Dec Toolkit PIXMAP/Label question Message-ID: <8908301953.AA29065@expo.lcs.mit.edu> Date: 30 Aug 89 19:53:31 GMT References: <5840022@wdl1.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Organization: X Consortium, MIT Laboratory for Computer Science Lines: 35 > I'm trying to do something very simple: make a label widget with > a pixmap label. [excerpts of code] > middle = XCreatePixmapFromBitmapData(display,rootwin,confirm_right_bits, > confirm_middle_width,confirm_middle_height,1); > produces the following semi-useless garbage: > > X Protocol error: BadValue, integer parameter out of range for operation > Major opcode of failed request: 53 (X_CreatePixmap) > Minor opcode of failed request: 0 > Resource id in failed request: 0x0 > Serial number of failed request: 29 > Current serial number in output stream: 41 > > What's going on here? What's the bad value? Huh? Wrong number of arguments to XCreatePixmapFromBitmapData. If your width or height are 0 that would produce the BadValue error. But it is probably the depth argument, which is missing, which is resulting in the BadValue error. > P.S. What the hell is a drawable? What does the line: > "Specifies the drrawable that indicates the screen." > mean? The glossary defines drawable. The server uses the drawable argument to determine on which screen to create the pixmap; pixmaps can only be used on the screen on which they were created. Donna Converse converse@expo.lcs.mit.edu