Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!uw-june!gthomas From: gthomas@uw-june (Greg Thomas) Newsgroups: comp.windows.x Subject: application design question Keywords: Xaw Message-ID: <8909@june.cs.washington.edu> Date: 4 Aug 89 04:08:58 GMT Sender: gthomas@june.cs.washington.edu Reply-To: gthomas@uw-june (Greg Thomas) Organization: U of Washington, Computer Science, Seattle Lines: 17 I'm developing an application (using the Xaw widgets) that will have a user interface somewhat similar to xfig, i.e., a "canvas" where certain drawing operations will be performed, and a "control panel" for selecting operations. Currently, the canvas is implemented as a Label widget (because labels are simple, and their size is easily controllable). I add an event handler for the canvas which processes button, motion, enter/leave, and exposure events. The canvas and the control panel are children of a Form widget. Basically, a plain window would be sufficient for the purpose of drawing. My question is: Is there a better/easier/cleaner way to implement the canvas? Any advice is welcome -- thanks! greg gthomas@cs.washington.edu