home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / man / cat3 / xtsetlanguageproc.0 < prev    next >
Encoding:
Text File  |  1996-10-17  |  3.3 KB  |  133 lines

  1.  
  2.  
  3.  
  4. XtSetLanguageProc(3Xt)       XT FUNCTIONS       XtSetLanguageProc(3Xt)
  5.  
  6.  
  7. NNAAMMEE
  8.        XtSetLanguageProc - set the language procedure
  9.  
  10. SSYYNNTTAAXX
  11.        Widget XtSetLanguageProc(_a_p_p___c_o_n_t_e_x_t, _p_r_o_c, _c_l_i_e_n_t___d_a_t_a)
  12.          XtAppContext _a_p_p___c_o_n_t_e_x_t;
  13.          XtLanguageProc _p_r_o_c;
  14.          XtPointer _c_l_i_e_n_t___d_a_t_a;
  15.  
  16. AARRGGUUMMEENNTTSS
  17.        _a_p_p___c_o_n_t_e_x_t
  18.          Specifies the application context in which the
  19.          language procedure is to be used, or NULL.
  20.  
  21.  
  22.        _p_r_o_c     Specifies the language procedure, or NULL.
  23.  
  24.  
  25.        _c_l_i_e_n_t___d_a_t_a
  26.          Specifes addional client data to be passed to
  27.          the language procedure when it is called.
  28.  
  29. DDEESSCCRRIIPPTTIIOONN
  30.        _X_t_S_e_t_L_a_n_g_u_a_g_e_P_r_o_c sets the language procedure that will be
  31.        called from _X_t_D_i_s_p_l_a_y_I_n_i_t_i_a_l_i_z_e for all subsequent Dis-
  32.        plays initialized in the specified application context. If
  33.        _a_p_p___c_o_n_t_e_x_t is NULL, the specified language procedure is
  34.        registered in all application contexts created by the
  35.        calling process, including any future application contexts
  36.        that may be created. If _p_r_o_c is NULL a default language
  37.        procedure is registered.     _X_t_S_e_t_L_a_n_g_u_a_g_e_P_r_o_c returns the
  38.        previously registered language procedure. If a language
  39.        procedure has not yet been registered, the return value is
  40.        unspecified but if this return value is used in a subse-
  41.        quent call to _X_t_S_e_t_L_a_n_g_u_a_g_e_P_r_o_c, it will bcause the
  42.        default language procedure to be registered.
  43.  
  44.        The default language procdure does the following:
  45.  
  46.        +o    Sets the locale according to the environment. On ANSI
  47.         C-based systems this is done by calling _s_e_t_l_o_c_a_l_e(
  48.         _L_C___A_L_L, language ). If an error is encountered a
  49.         warning message is issued with _X_t_W_a_r_n_i_n_g.
  50.  
  51.        +o    Calls _X_S_u_p_p_o_r_t_s_L_o_c_a_l_e to verify that the current
  52.         locale is supported. If the locale is not supported,
  53.         a warning message is issued with _X_t_W_a_r_n_i_n_g and the
  54.         locale is set to ``C''.
  55.  
  56.        +o    Calls _X_S_e_t_L_o_c_a_l_e_M_o_d_i_f_i_e_r_s specifying the empty
  57.         string.
  58.  
  59.        +o    Returns the value of the current locale. On ANSI C-
  60.         based systems this is the return value from a final
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XtSetLanguageProc(3Xt)       XT FUNCTIONS       XtSetLanguageProc(3Xt)
  71.  
  72.  
  73.         call to _s_e_t_l_o_c_a_l( _L_C___A_L_L, NULL ).
  74.  
  75.        A client wishing to use this mechanism to establish locale
  76.        can do so by calling _X_t_S_e_t_L_a_n_g_u_a_g_e_P_r_o_c prior to _X_t_D_i_s_-
  77.        _p_l_a_y_I_n_i_t_i_a_l_i_z_e_.
  78.  
  79. SSEEEE AALLSSOO
  80.        _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
  81.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.