Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!TWG.COM!jlunny From: jlunny@TWG.COM ("John Lunny") Newsgroups: comp.windows.x Subject: help with XmCreateDrawingArea() ? Message-ID: <8912192251.AA27790@expo.lcs.mit.edu> Date: 19 Dec 89 22:36:00 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 22 hi, at the outset i would like to warn you that i am new at this X programming thing. i'm trying to port an X Lib application to Motif. I decided to go with the XmDrawingArea Widget, so that i could keep my old X Lib calls. so i create a drawing area widget via XmCreateDrawingArea. However, the X Lib calls require a window with which to draw into. i thought this could easily be the result of a XtWindow() call on the widget returned from XmCreateDrawingArea. however, when i try to create the graphics context with this window id, it comes back with a badDrawable error. in a nutshell.. drawingarea = XmCreateDrawingArea (...); XtManagechild (drawingarea); ... w = XtWindow (drawingarea); XCreateGC (dpy, w, ...); any ideas??? thanks in advance. jlunny@twg.com