Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XtAppAddAcA(3) — OSF1 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtAppAddActions(1)

XtCallActionProc(1)

 

Name

XtAppAddActionHook — add an action hook. 

Synopsis

XtActionHookId XtAppAddActionHook(app, proc, client_data)

      XtAppContext app;
      XtActionHookProc proc;
      XtPointer client_data;

Arguments

appSpecifies the application context. 

procSpecifies the action hook procedure. 

client_data
Specifies application-specific data to be passed to the action hook.

Description

XtAppAddActionHook adds the specified procedure to the front of an action list for a particular application context.  In the future, when any action routine is about to be invoked for any widget in this application context, either through the translation manager or via XtCallActionProc, the action hook procedures will be called in reverse order of registration just prior to invoking the action routine. 

Action hook procedures are removed automatically and the XtActionHookIds destroyed when the application context in which they were added is destroyed. 

Action hooks can be used to record user actions for later playback using XtCallActionProc.  This is one way to implement keyboard macros. 

See Also

XtAppAddActions(1), XtCallActionProc(1). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026