Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xtappaddactionhook(3) [hpux man page]

XtAppAddActionHook(3)                                              XT FUNCTIONS                                              XtAppAddActionHook(3)

NAME
XtAppAddActionHook, XtRemoveActionHook - register an action hook procedure SYNTAX
XtActionHookId XtAppAddActionHook(XtAppContext app_context, XtActionHookProc proc, XtPointer client_data); void XtRemoveActionHook(XtActionHookId id); ARGUMENTS
app_context Specifies the application context. proc Specifies the action hook procedure. num_args Specifies the application-specific data to be passed to the action hook. DESCRIPTION
XtAppAddActionHook adds the specified procedure to the front of a list maintained in the application context. In the future, when an action routine is about to be invoked for any widget in this application context, either through the translation manager or via XtCallActionProc, the action hohok procedures will be called in reverse order of registration jut prior to invoking the action routine. Action hook procedures are removed automatically and the XtActionHookId s destroyed when the application context in which they were added is destroyed. XtRemoveActionHook removes the specified action hook procedure from the list in which it was registered. SEE ALSO
X Toolkit Intrinsics - C Language Interface Xlib - C Language X Interface X Version 11 libXt 1.1.3 XtAppAddActionHook(3)

Check Out this Related Man Page

XtCallActionProc()														XtCallActionProc()

Name
  XtCallActionProc - explicitly invoke a named action procedure.

Synopsis
  void XtCallActionProc(widget, action, event, params, num_params)
	   Widget widget;
	   String action;
	   XEvent *event;
	   String *params;
	   Cardinal num_params;

Inputs
  widget    Specifies the widget in which the action is to be invoked; must be of class Core or any subclass thereof.

  action    Specifies the name of the action routine.

  event     Specifies the event to pass to the action procedure.

  params    Specifies parameters to pass to the action procedure.

  num_params
	    Specifies the number of elements in the params array.

Description
  XtCallActionProc()  looks  up the action procedure named action and invokes it, passing widget, event, params, and num_params as arguments.
  Before calling the named action, XtCallActionProc() invokes any action hook procedures that have been registered with XtAppAddActionHook().

  It is the responsibility of the caller to ensure that the contents of the event, params, and num_params arguments are appropriate  for  the
  specified  action routine and, if necessary, that the specified widget is realized and/or sensitive.	If the named action routine cannot be
  found, XtCallActionProc() generates a warning message and returns.

  When searching for the action procedure, XtCallActionProc() looks in the following places:

  o  The widget's class and all superclass action tables, in subclass-to-superclass order.

  o  The parent's class and all superclass action tables, in subclass-to-superclass order, then on up the ancestor tree.

  o  The action tables registered with XtAppAddActions() and XtAddActions() from the most recently added table to the oldest table.

See Also
  XtAppAddActionHook(1), XtRemoveActionHook(1),
  XtActionHookProc(2).

Xt - Translations and Actions													XtCallActionProc()
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

action command

Hi.. When i refered the script /etc/rc.sysinit... i found the "action commands" like But this is not working in my shells.. the following error is coming... Please anybody help Thanks in advance esham (5 Replies)
Discussion started by: esham
5 Replies

2. Solaris

This application is eating up the CPU

Hi, I am not very much fmiliar with Solaris OS. My main concern for posting is One application is eating 50% of CPU and I cannot run that application, If I perform any action in that application it takes real long time. I have solaris installed on my development machine.I have my application... (11 Replies)
Discussion started by: pandu345
11 Replies

3. Shell Programming and Scripting

how to list files and execute an action?

I'm not sure how to word what I'm trying to do. I would like to: 1. Generate a list of files (easy to do ls -l > list.txt) 2. Carry out an action again each file in the list (not so easy to do) Like: List all files in /dir and then execute a move of each file individually. something... (6 Replies)
Discussion started by: bbbngowc
6 Replies

4. Shell Programming and Scripting

awk statement to eliminate the duplicates

consider the below output cat tablextract2.sql CREATE PROCEDURE after72DeleteTgr(id int) BEGIN END $$ Delimiter ; CREATE PROCEDURE after72DeleteTgr(id int) BEGIN END $$ Delimiter ; # # proc_name1="after72DeleteTgr" # # echo "`awk '{if($3~v){a=1}}a;/elimiter\|DELIMITER/{exit}'... (17 Replies)
Discussion started by: vivek d r
17 Replies