Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!xpiinc!ctr From: ctr@xpiinc.UU.NET (Christian Reimer) Newsgroups: comp.windows.x Subject: Re: Dec Toolkit PIXMAP/Label question Message-ID: <226@xpiinc.UU.NET> Date: 31 Aug 89 16:16:01 GMT References: <5840022@wdl1.UUCP> <1459@riscy.dec.com> Reply-To: ctr@xpiinc.uu.net (Christian Reimer) Organization: Visual Technology Incorporated / Xpi Division, Providence, R.I. Lines: 39 In article <1459@riscy.dec.com> graham@fuel.dec.com (kris graham) writes: > >The following is a sample of how to create pixmaps with the DECwindows toolkit. > >static Pixmap MakePixmap(dpy, root, data, width, height) > Display *dpy; > Drawable root; > short *data; > Dimension width, height; >{ > Pixmap pid; > unsigned long ScreenNumber; > ScreenNumber = XDefaultScreen (dpy); > pid = XCreatePixmapFromBitmapData (dpy, root, data, > (Dimension) width, (Dimension) height, > (unsigned long) BlackPixel (dpy, ScreenNumber), > (unsigned long) WhitePixel (dpy, ScreenNumber), > (unsigned int) DefaultDepth (dpy, ScreenNumber)); > return(pid); >} I don't see any DECwindows toolkit calls here, do you? Using the term "DECwindows" gives the impression that you are talking about some proprietary DEC system, not the freely distributed X Window System. There ARE people out there that do not automatically make the identification between DECwindows and X. Let's not confuse them further by abusing our terminology. By the way, Does anyone have an example which *really* shows how to use the DEC toolkit to do something simple (like make a label widget with a pixmap label) without having to pull one's hair out? ------------------------------------------------------------------------------ Christian Reimer | "Live free or develop a Visual Technology | proprietary [operating|windowing] system!" ctr@xpiinc.uu.net | ------------------------------------------------------------------------------