Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!chaph.usc.edu!alcor.usc.edu!jeenglis From: jeenglis@alcor.usc.edu (Joe English Muffin) Newsgroups: comp.windows.x Subject: Re: Athena Graphics Widget? Message-ID: <13238@chaph.usc.edu> Date: 20 Nov 90 00:12:06 GMT References: <_=+^9J&@rpi.edu> <1990Nov19.125736@wsl.dec.com> Sender: news@chaph.usc.edu Distribution: comp.windows.x Organization: USC Co-Ed Naked Depressed Person's Softball League Lines: 21 Nntp-Posting-Host: alcor.usc.edu klee@wsl.dec.com (Ken Lee) writes: >In article <_=+^9J&@rpi.edu>, poladiag@turing.cs.rpi.edu (Grant Poladian) writes: >|> I'd like to know if there is someway of using graphics (drawing and such) >|> through some Athena Widget? >The "correct" way to do this is to subclass an existing widget and add >the graphics functionality you desire. If no existing widget has any >functionality you can use, you can just subclass the core widget. You could also use a Grip. The GripAction() callback is versatile enough to let you create just about any kind of input semantics you want. It's kind of a hack, but it takes less than a tenth the amount of code as writing a new widget would. --Joe English jeenglis@alcor.usc.edu