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

  1.  
  2.  
  3.  
  4. XtOpenApplication(3Xt)       XT FUNCTIONS       XtOpenApplication(3Xt)
  5.  
  6.  
  7. NNAAMMEE
  8.        XtOpenApplication, XtVaOpenApplication - initialize, open,
  9.        or close a display
  10.  
  11. SSYYNNTTAAXX
  12.        Widget XtOpenApplication(_a_p_p___c_o_n_t_e_x_t___r_e_t_u_r_n, _a_p_p_l_i_c_a_-
  13.        _t_i_o_n___c_l_a_s_s, _o_p_t_i_o_n_s, _n_u_m___o_p_t_i_o_n_s, _a_r_g_c___i_n___o_u_t,
  14.        _a_r_g_v___i_n___o_u_t, _f_a_l_l_b_a_c_k___r_e_s_o_u_r_c_e_s, _w_i_d_g_e_t___c_l_a_s_s, _a_r_g_s,
  15.        _n_u_m___a_r_g_s)
  16.          XtAppContext _a_p_p___c_o_n_t_e_x_t___r_e_t_u_r_n;
  17.          String _a_p_p_l_i_c_a_t_i_o_n___c_l_a_s_s;
  18.          XrmOptionDescRec* _o_p_t_i_o_n_s;
  19.          Cardinal _n_u_m___o_p_t_i_o_n_s;
  20.          int* _a_r_g_c___i_n___o_u_t;
  21.          String* _a_r_g_v___i_n___o_u_t;
  22.          String* _f_a_l_l_b_a_c_k___r_e_s_o_u_r_c_e_s;
  23.          WidgetClass _w_i_d_g_e_t___c_l_a_s_s;
  24.          ArgList _a_r_g_s;
  25.          Cardinal _n_u_m___a_r_g_s;
  26.  
  27.        Widget XtVaOpenApplication(_a_p_p___c_o_n_t_e_x_t___r_e_t_u_r_n, _a_p_p_l_i_c_a_-
  28.        _t_i_o_n___c_l_a_s_s, _o_p_t_i_o_n_s, _n_u_m___o_p_t_i_o_n_s, _a_r_g_c___i_n___o_u_t,
  29.        _a_r_g_v___i_n___o_u_t, _f_a_l_l_b_a_c_k___r_e_s_o_u_r_c_e_s, _w_i_d_g_e_t___c_l_a_s_s, ...)
  30.          XtAppContext _a_p_p___c_o_n_t_e_x_t___r_e_t_u_r_n;
  31.          String _a_p_p_l_i_c_a_t_i_o_n___c_l_a_s_s;
  32.          XrmOptionDescRec* _o_p_t_i_o_n_s;
  33.          Cardinal _n_u_m___o_p_t_i_o_n_s;
  34.          int* _a_r_g_c___i_n___o_u_t;
  35.          String* _a_r_g_v___i_n___o_u_t;
  36.          String* _f_a_l_l_b_a_c_k___r_e_s_o_u_r_c_e_s;
  37.          WidgetClass _w_i_d_g_e_t___c_l_a_s_s;
  38.  
  39. AARRGGUUMMEENNTTSS
  40.        _a_p_p___c_o_n_t_e_x_t___r_e_t_u_r_n
  41.          Specifies the application context.
  42.  
  43.        _a_p_p_l_i_c_a_t_i_o_n___c_l_a_s_s
  44.          Specifies the class name of this application,
  45.          which usually is the generic name for all
  46.          instances of this application.
  47.  
  48.        _o_p_t_i_o_n_s     Specifies how to parse the command line for any
  49.          application-specific resources.  The options
  50.          argument is passed as a parameter to
  51.          _X_r_m_P_a_r_s_e_C_o_m_m_a_n_d.  For further information, see
  52.          _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e.
  53.  
  54.        _n_u_m___o_p_t_i_o_n_s
  55.          Specifies the number of entries in the options
  56.          list.
  57.  
  58.        _a_r_g_c___i_n___o_u_t
  59.          Specifies a pointer to the number of command
  60.          line parameters.
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XtOpenApplication(3Xt)       XT FUNCTIONS       XtOpenApplication(3Xt)
  71.  
  72.  
  73.        _a_r_g_v___i_n___o_u_t
  74.          Specifies the command line parameters.
  75.  
  76.        _f_a_l_l_b_a_c_k___r_e_s_o_u_r_c_e_s
  77.          Specifies resource values to be used if the
  78.          application class resource file cannot be opened
  79.          or read, or NULL.
  80.  
  81.        _w_i_d_g_e_t___c_l_a_s_s
  82.          Specifies the widget class of the shell to be
  83.          created.
  84.  
  85.        _a_r_g_s     Specifies the argument list to override any
  86.          other resource specification for the created
  87.          shell widget.
  88.  
  89.        _n_u_m___a_r_g_s     Specifies the number of entries in the argument
  90.          list.
  91.  
  92.        _._._.     Specifies the variable argument list to override
  93.          any other resource specification for the created
  94.          shell widget.
  95.  
  96. DDEESSCCRRIIPPTTIIOONN
  97.        The _X_t_O_p_e_n_A_p_p_l_i_c_a_t_i_o_n function calls _X_t_T_o_o_l_k_i_t_I_n_i_t_i_a_l_i_z_e
  98.        followed by _X_t_C_r_e_a_t_e_A_p_p_l_i_c_a_t_i_o_n_C_o_n_t_e_x_t, then calls
  99.        _X_t_O_p_e_n_D_i_s_p_l_a_y with _d_i_s_p_l_a_y___s_t_r_i_n_g NULL and _a_p_p_l_i_c_a_-
  100.        _t_i_o_n___n_a_m_e NULL, and finally calls _X_t_A_p_p_C_r_e_a_t_e_S_h_e_l_l with
  101.        _a_p_p_c_a_t_i_o_n___n_a_m_e NULL, _w_i_d_g_e_t___c_l_a_s_s
  102.        _a_p_p_l_i_c_a_t_i_o_n_S_h_e_l_l_W_i_d_g_e_t_C_l_a_s_s, and the specified _a_r_g_s and
  103.        _n_u_m___a_r_g_s and returns the created shell. The modified _a_r_g_c
  104.        and _a_r_g_v returned by _X_t_D_i_s_p_l_a_y_I_n_i_t_i_a_l_i_z_e are returned in
  105.        _a_r_g_c___i_n___o_u_t and _a_r_g_v___i_n___o_u_t. If _a_p_p___c_o_n_t_e_x_t___r_e_t_u_r_n _i_s _n_o_t
  106.        _N_U_L_L_, _t_h_e _c_r_e_a_t_e_d _a_p_p_l_i_c_a_t_i_o_n _c_o_n_t_e_x_t _i_s _a_l_s_o _r_e_t_u_r_n_e_d_. _I_f
  107.        _t_h_e _d_i_s_p_l_a_y _s_p_e_c_i_f_i_e_d _b_y _t_h_e _c_o_m_m_a_n_d _l_i_n_e _c_a_n_n_o_t _b_e
  108.        _o_p_e_n_e_d_, _a_n _e_r_r_o_r _m_e_s_s_a_g_e _i_s _i_s_s_u_e_d _a_n_d _X_t_O_p_e_n_A_p_p_l_i_c_a_t_i_o_n
  109.        _t_e_r_m_i_n_a_t_e_s _t_h_e _a_p_p_l_i_c_a_t_i_o_n_. _I_f _f_a_l_l_b_a_c_k___r_e_s_o_u_r_c_e_s _i_s _n_o_n_-
  110.        _N_U_L_L_, _X_t_A_p_p_S_e_t_F_a_l_l_b_a_c_k_R_e_s_o_u_r_c_e_s _i_s _c_a_l_l_e_d _w_i_t_h _t_h_e _v_a_l_u_e
  111.        _p_r_i_o_r _t_o _c_a_l_l_i_n_g _X_t_O_p_e_n_D_i_s_p_l_a_y_.
  112.  
  113.        XtAppInitialize and XtVaAppInitialize have been superceded
  114.        by _X_t_O_p_e_n_A_p_p_l_i_c_a_t_i_o_n and _X_t_V_a_O_p_e_n_A_p_p_l_i_c_a_t_i_o_n respectively.
  115.  
  116. SSEEEE AALLSSOO
  117.        XtOpenApplication(3Xt), XtVaOpenApplication(3Xt)
  118.        _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
  119.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.