Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!jpl-devvax!david From: david@jpl-devvax.JPL.NASA.GOV (David E. Smyth) Newsgroups: comp.windows.x Subject: Re: Calling Actions from Actions Message-ID: <11620@jpl-devvax.JPL.NASA.GOV> Date: 28 Feb 91 16:45:04 GMT References: <38437@netnews.upenn.edu> Reply-To: david@jpl-devvax.JPL.NASA.GOV (David E. Smyth) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 41 corry@eniac.seas.upenn.edu (Chris Corry) writes: > I didn't think it would work but I wrote an action (MyDeleteChar) and >replaced the "delete-previous-char" action with it. Then I tried to directly >call DeleteBackwardChar (found in the private widget code) from my action if >needed. As you might expect my link ended like this: > >>%make -fhypermake >>ld: Undefined symbol >> _DeleteOrKill See page 367 (section 7.12 - Calling Action Procedures Directly) of the new Asente and Swick "X Window System Toolkit" or page 138 (section 10.9 - Invoking Actions Directly) of the "X Toolkit Intrinsics - C Language Interface X11R4 version." void XtCallActionProc(widget,action,event,params,num_params) Widget widget; String action; XEvent* event; String* params; Cardinal num_params; Asente&Swick write: XtCallActionProc searches for the action name for the widget ... If the search finds no action with the specified name, XtCallActionProc generates a warning and returns. ... Otherwise XtCallActionProc calls the action procedure, passing the specified event, parameters, and parameter counts. ------------------------------------------------------------------------- David Smyth david@jpl-devvax.jpl.nasa.gov Senior Software Engineer, seismo!cit-vax!jpl-devvax!david X and Object Guru. (818)393-0983 Jet Propulsion Lab, M/S 230-103, 4800 Oak Grove Drive, Pasadena, CA 91109 ------------------------------------------------------------------------- One of these days I'm gonna learn: Everytime I throw money at a problem to make it disappear, the only thing that disappears is my money... -------------------------------------------------------------------------