Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!bellcore-2!bellcore!cellar!aw From: aw@cellar.uucp (Andrew Wason) Newsgroups: comp.windows.x Subject: Re: Calling Actions, List Widget Message-ID: <28536@bellcore.bellcore.com> Date: 4 Nov 90 04:08:45 GMT References: <1990Nov2.191421.19731@elroy.jpl.nasa.gov> Sender: news@bellcore.bellcore.com Reply-To: aw@cellar.bae.bellcore.com (Andrew Wason) Organization: Bellcore Lines: 25 In article <1990Nov2.191421.19731@elroy.jpl.nasa.gov> ems@socrates.jpl.nasa.gov writes: > > Is it possible to call an arbitrary action of a given widget >without sending an artificial event? For example, based on >a return in a Text Widget, I want to be able to call the >"ListNextElement()" action of a list widget. Is this possible? You could use accelerators to make the return event in the Text widget call the ListNextElement() action of the List widget. However, I've found you often have to do headstands to get accelerators to work in Motif because of all the behind the scenes stuff Motif does for all of its keyboard traversal/menu accelerators etc. It can be done, it's just not always straightforward. Andrew -------------------------------------------------------------------------------- Andrew Wason Bell Communications Research aw@cellar.bae.bellcore.com Piscataway, NJ bellcore!cellar!aw -------------------------------------------------------------------------------- Andrew Wason Bell Communications Research aw@cellar.bae.bellcore.com Piscataway, NJ bellcore!cellar!aw