XtParseAcceleratorTable() XtParseAcceleratorTable()
Name
XtParseAcceleratorTable - compile an accelerator table into its internal representation.
Synopsis
XtAccelerators XtParseAcceleratorTable(table)
String table;
Inputs
table Specifies the accelerator table to compile.
Returns
The compiled form of table.
Description
XtParseAcceleratorTable() 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
directive, if specified, applies to what will happen when the accelerator is installed; that is, whether or not the accelerator transla-
tions will override the translations in the destination widget. The default is #augment, which means that the accelerator translations
have lower priority 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 automatically 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 Also
XtInstallAccelerators(1), XtInstallAllAccelerators(1).
Xt - Translations and Actions XtParseAcceleratorTable()