Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!rice!uncle-bens.rice.edu!sam From: sam@uncle-bens.rice.edu (Samuel R Johnson) Newsgroups: comp.windows.x Subject: a couple o' questions Message-ID: <1990Dec18.142305.23701@rice.edu> Date: 18 Dec 90 14:23:05 GMT Sender: news@rice.edu (News) Reply-To: sam@uncle-bens.rice.edu (Samuel R Johnson) Organization: Rice University Lines: 28 hello. i've been not keeping up wih this group since last summer, so i apologize if any of this has been covered previously... two questions: with Xt, Athena - is there any *clean* way to get a command widget to display a pixmap? like, maybe a happy face or a frog or something? also with Xt, Athena - i realize this is taboo, but sometimes i'd really like to just draw into a widget with Xlib routines for one reason or another. when i try to do an XDrawRectangle(XtDisplay(w),XtWindow(w),XtGetGC(w,0,&val), 0, 0, width, height); i get nothing. thinking that perhaps the colors are set incorrectly (invisibly) for the widget in its GC, i tried creating my own gc = XCreateGC(XtDisplay(w),XtWindow(w),None,NULL); /* defaults */ XDrawRectangle(XtDisplay(w),XtWindow(w),gc, 0, 0, width, height); but still see nothing. any ideas? thanks a bunch. -Sam sam@owlnet.rice.edu