NAME
XtParseAcceleratorTable, XtInstallAccelerators, XtInstallAllAccelerators - managing accelerator tables
SYNTAX
XtAccelerators XtParseAcceleratorTable(String _s_o_u_r_c_e);
void XtInstallAccelerators(Widget _d_e_s_t_i_n_a_t_i_o_n, Widget _s_o_u_r_c_e);
void XtInstallAllAccelerators(Widget _d_e_s_t_i_n_a_t_i_o_n, Widget _s_o_u_r_c_e);
ARGUMENTS
-
_s_o_u_r_c_e
Specifies the accelerator table to compile.
-
-
_d_e_s_t_i_n_a_t_i_o_n
Specifies the widget on which the accelerators are to be installed.
-
-
_s_o_u_r_c_e
Specifies the widget or the root widget of the widget tree from which the accelerators are to come.
-
DESCRIPTION
The
_X_t_P_a_r_s_e_A_c_c_e_l_e_r_a_t_o_r_T_a_b_l_e
function compiles the accelerator table into the opaque internal representation.
The
_X_t_I_n_s_t_a_l_l_A_c_c_e_l_e_r_a_t_o_r_s
function installs the accelerators from source onto destination
by augmenting the destination translations with the source accelerators.
If the source display_accelerator method is non-NULL,
_X_t_I_n_s_t_a_l_l_A_c_c_e_l_e_r_a_t_o_r_s
calls it with the source widget and a string representation
of the accelerator table,
which indicates that its accelerators have been installed
and that it should display them appropriately.
The string representation of the accelerator table is its
canonical translation table representation.
The
_X_t_I_n_s_t_a_l_l_A_l_l_A_c_c_e_l_e_r_a_t_o_r_s
function recursively descends the widget tree rooted at source
and installs the accelerators of each widget encountered onto destination.
A common use os to call
_X_t_I_n_s_t_a_l_l_A_l_l_A_c_c_e_l_e_r_a_t_o_r_s
and pass the application main window as the source.
SEE ALSO
XtParseTranslationTable(1)
_X _T_o_o_l_k_i_t _I_n_t_r_i_n_s_i_c_s _- _C _L_a_n_g_u_a_g_e _I_n_t_e_r_f_a_c_e
_X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e