Path: utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!ncis!helios.ee.lbl.gov!pasteur!agate!bionet!csd4.milw.wisc.edu!uxc!iuvax!beckman From: beckman@iuvax.cs.indiana.edu Newsgroups: comp.windows.x Subject: Widgets and Xlib Message-ID: <33500005@iuvax> Date: 19 Jan 89 12:56:00 GMT Organization: Indiana University CSCI, Bloomington Lines: 16 Nf-ID: #N:iuvax:33500005:000:424 Nf-From: iuvax.cs.indiana.edu!beckman Jan 19 07:56:00 1989 I am using the HP Widget set. How do I use the Xlib graphic primitives within a widget to draw lines, boxes, etc. I haven't had any success. I have tried lots of different things, the most recent being this: Display *dpy; Drawable win; GC gc; dpy = XtDisplay(widget) win = XtWindow(widget); gc = XtGetGC(widget); XDrawLine(dpy,win,gc,0,0,100,100); Could you please help me out? -Pete beckman@cs.iuvax.indiana.edu