Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!psuvax1!rutgers!mjm!mjf From: mjf@mjm.mjm.com (Mark Fresolone) Newsgroups: comp.windows.x Subject: Re: Motif DrawingArea to OL Intrinsics? Message-ID: <1560001@mjm.mjm.com> Date: 10 Jun 91 22:06:12 GMT References: <25337@well.sf.ca.us> Organization: Melillo Consulting, Somerset, NJ Lines: 26 >I'm porting an application from Motif to the Open Look Intrinsics. >In the Motif program, I used a drawingArea widget to give me input >and expose events. However, under Open Look, I do not see an >analogous widget. There seems to be no widget whose purpose is to >give an input/drawing basis. The OLIT Stub widget is a skeletal widget class which can be used as a drawing area. In addition to callbacks, you can add an event handler to it for Exposure, allowing your client to take advantage of event compression. The Stub widget is scantilly documented in the Programmer's Guide, but it gets the usual treatment in the Reference Section, and is used in tutorial code such as s_sampler.c. >One thought I had to this problem, is to use the Text widget and not >use any of its drawing/text capabilities, but rather, take its >input/expose call backs and draw into the widget as an X window >(which is what I do with the drawingArea widget under Motif, anyway). Having the Stub widget around, I wouldn't fool with Text. (By the way, if you have a later version of USL 2.0/Sun 2.3, you may have the newer TextEdit widget. If so, I would abandon Text immediately - USL is!) Mark Fresolone mjf@mjm.com, rutgers!mjm!mjf Melillo Consulting/MJM Software 908-873-0620/Fax 908-873-2250