Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!pasteur!buddy.Berkeley.EDU!deboor From: deboor@buddy.Berkeley.EDU (Adam R de Boor) Newsgroups: comp.windows.x Subject: Re: Subclassing the Athena Widgets Message-ID: <16059@pasteur.Berkeley.EDU> Date: 4 Aug 89 21:01:38 GMT References: <9975@csli.Stanford.EDU> Sender: news@pasteur.Berkeley.EDU Reply-To: deboor@buddy.Berkeley.EDU.UUCP (Adam R de Boor) Organization: University of California, Berkeley Lines: 14 You should subclass off of Command. If you don't need to do anything special for Expose, you can just fill the slot with XtInheritExpose. If you do need to do something a little different, but want to use what your superclass does, the object-oriented buzzword you want is "to call your superclass", as: (* toggleWidgetClass->superclass->expose) (w, event, region) either before or after you've done your bit, whatever it may be. Similar things can be done for all other "methods". a