XtParseAcceleratorTable()XtParseAcceleratorTable()NameXtParseAcceleratorTable - compile an accelerator table into its inter‐
nal representation.
Synopsis
XtAccelerators XtParseAcceleratorTable(table)
String table;
Inputs
table Specifies the accelerator table to compile.
Returns
The compiled form of table.
DescriptionXtParseAcceleratorTable() compiles the accelerator table into its
opaque internal representation. This compiled table can be used to set
the XtNaccelerators resource of a widget.
The syntax of the string form of an accelerator table is the same as
that of a translation table, and is described in Appendix F. The
interpretation of the #augment and #override directives is different in
accelerator tables than in translation tables, however. This direc‐
tive, if specified, applies to what will happen when the accelerator is
installed; that is, whether or not the accelerator translations will
override the translations in the destination widget. The default is
#augment, which means that the accelerator translations have lower pri‐
ority than the destination translations. The #replace directive is
ignored for accelerator tables.
Usage
An accelerator binds an event sequence in one widget to actions in
another. Accelerators are set as a resource of a widget but do not
take effect until they are "installed" on a destination widget. See
XtInstallAccelerators().
When an accelerator table is specified in a resource file, it is auto‐
matically parsed by one of Xt's converters, and XtParseAccelera‐
torTable() is not used.
Another way to parse an accelerator table is to use the XtVaTypedArg
feature at XtVaCreateWidget() or XtVaSetValues() and specify the string
form directly. This will invoke the appropriate resource converter to
compile the table.
See AlsoXtInstallAccelerators(1), XtInstallAllAccelerators(1).
Xt - Translations and Actions XtParseAcceleratorTable()