Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!gatech!mcnc!duke!romeo!ndd From: ndd@romeo.cs.duke.edu (Ned D. Danieley) Newsgroups: comp.windows.x Subject: graphics and widgets under X11 Keywords: X11 Message-ID: <13350@duke.cs.duke.edu> Date: 1 Feb 89 21:33:23 GMT Sender: news@duke.cs.duke.edu Lines: 23 X11R2, Sun 3/280 running 3.5, X toolkit. I'm trying to convert some applications from X10 to X11, and have run into a problem. Under X10, I could register an event handler with a window: I would open a window, make a button box and some command buttons, and I could get events either through the command buttons or directly from the window (button clicks or key presses). However, as far as I can tell, there is no way to register an event handler with a window under X11. Am I missing something? I'm trying to avoid writing a special widget, because I have a fair amount of code that assumes a window. If I can't register an event handler, is there a way to use routines like XDrawLine, etc, with a widget? I've tried to get the associated window using XtWindow, but when I try to get the attributes of that window, I get an error. Ned Danieley (ndd@sunbar.mc.duke.edu) Basic Arrhythmia Laboratory Box 3140, Duke University Medical Center Durham, NC 27710 (919) 684-6807 or 684-6942