Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!cs.utexas.edu!uwm.edu!bionet!agate!ucbvax!ISI.COM!edmark From: edmark@ISI.COM (Ron O. Edmark) Newsgroups: comp.windows.x.motif Subject: Replace action routine. Message-ID: <9104120010.AA01541@trifid> Date: 12 Apr 91 00:10:07 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 21 I want to replace the text widgets "beep" action routine with one of my own that not only beeps but also displays a warning message. I have tried using XtAppAddActions but my routine did not get called. What should I be doing? eg. static XtActionsRec text_action[]= {{"beep", (XtActionProc) myBeep}}; XtAppAddAction(app, text_action, XtNumber(text_action)); Thanks in advance. +---------------------------------------------------------------------+ | Ron Edmark User Interface Group | | Tel: (408) 980-1500 x282 Integrated Systems, Inc. | | Internet: edmark@isi.com 2500 Mission College Blvd. | | Voice mail: (408) 980-1590 x282 Santa Clara, CA 94054 | +---------------------------------------------------------------------+