Newsgroups: comp.windows.x Path: utzoo!utgpu!cunews!bnrgate!bwdls61!bwdls49!jsparkes From: jsparkes@bwdls49.bnr.ca (Jeff Sparkes) Subject: Re: Calling Actions from Actions Message-ID: Sender: usenet@bwdls61.bnr.ca (Use Net) Organization: Bell-Northern Research, Ottawa, Canada References: <38437@netnews.upenn.edu> <11620@jpl-devvax.JPL.NASA.GOV> Date: 28 Feb 91 18:27:16 GMT In <11620@jpl-devvax.JPL.NASA.GOV> david@jpl-devvax.JPL.NASA.GOV (David E. Smyth) writes: >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. The big problem with this is that you must parse the action parameters yourself. In x3270, I allow you to bind actions to a command button, but end up parsing it myself. I'd like to be able to call whichever routines parse actions/translation tables, but haven't found how to do it. -- Jeff Sparkes jsparkes@bnr.ca Bell-Northern Research, Ottawa (613)765-2503 Never trust a psychic who hasn't won the lottery. Twice.