Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ParseAccel(3X) — DeltaWindows 1.3.3 Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XtParseAcceleratorTable − compile an accelerator table into its internal representation. 

SYNOPSIS

XtAccelerators XtParseAcceleratorTable(table)
    String table;

Inputs

tableSpecifies 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 translations 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 XtParseAcceleratorTable() 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

XtInstallAcceleratorsUNIX SYSTEM V/68, XtInstallAllAcceleratorsUNIX SYSTEM V/68. 

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