[comp.windows.x] How to use XtAddActions and XtAugmentTranslations ?

awang@teknowledge-vaxc.ARPA (Alice Wang) (06/16/88)

Is there anyone out there who might have experience using XtAddActions()
and XtAugmentTranslations() routines ?

I want to create a widget class whose action table(and translation table)
is a superset of it's superclass's action table(and translation table).
The tm_table in the widget class record is defined as XtInheritTranslation
and the action field is defined as superclass's action table, and this
ensure the widget of inheriting superclass's actions and translations.
I also define a private action table and a private translation table for this
widget class,  I then tried to call XtAddActions() and XtAugmentTranslations()
in a class_part_initialize routine, but this won't work.  
When and where should I call these two routines to add on actions and 
translations.(note, I also want to inherit superclass's existent actions.)

Any suggestion is appreaciated.
(note: My X version is V11R2)

-Alice-