Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sgi!wdl1!gerolima From: gerolima@wdl1.UUCP (Mark K Gerolimatos) Newsgroups: comp.windows.x Subject: Dec Toolkit PIXMAP/Label question Message-ID: <5840022@wdl1.UUCP> Date: 24 Aug 89 03:47:53 GMT Lines: 63 Ever tried to use the Dec toolkit? Without pulling your hair out? I'm trying to do something very simple: make a label widget with a pixmap label. The following code: #include "cofirm_right.pr" : : : Pixmap middle; : : : middle = XCreatePixmapFromBitmapData(display,rootwin,confirm_right_bits, confirm_middle_width,confirm_middle_height,1); /* first off, the icons for the mouse buttons */ n = 0; XtSetArg(list[n],DwtNlabelType,DwtPixmap);n++; XtSetArg(list[n],DwtNx,110);n++; XtSetArg(list[n],DwtNy,2);n++; XtSetArg(list[n],DwtNpixmap,left);n++; /* error occurs here VVVVVV */ mousemsg_left_mouse_item = DwtLabelCreate(parent,"dfg",list,n); /* ^^^^^^^^ */ 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? Does anyone got an idea out there? How about some documentation as to how to do this? It would really be nice if DEC would provide some examples that aren't using that bogus UIL (I'm sorry, as of now, I simply find little or no use for it, and resent the implicit "ram down the throat" that I sense from their manuals)--a non-UIL version of DECburger would be real keen. Please mail me directly, as I don't "rn" all that often. -Mark sun!wdl1!gerolima or gerolima@ wdl1.fac.ford.com wdl34.fac.ford.com polya.stanford.edu wdl1.uucp P.S. What the hell is a drawable? What does the line: "Specifies the drrawable that indicates the screen." mean? Who X/Dwt manuals? George Bush? (If so, there'd have been no Quid Pro Quo.) P.P.S. To {First Name Forgotton} Graham at DECWRL: my mind is open now, but I still feel that the Sunview programming interface is FAR superior.