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

  1.  
  2.  
  3.  
  4. XSetCommand(3X11)      XLIB FUNCTIONS    XSetCommand(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XSetCommand, XGetCommand - set or read a window's
  9.        WM_COMMAND property
  10.  
  11. SSYYNNTTAAXX
  12.        XSetCommand(_d_i_s_p_l_a_y, _w, _a_r_g_v, _a_r_g_c)
  13.          Display *_d_i_s_p_l_a_y;
  14.          Window _w;
  15.          char **_a_r_g_v;
  16.          int _a_r_g_c;
  17.  
  18.        Status XGetCommand(_d_i_s_p_l_a_y, _w, _a_r_g_v___r_e_t_u_r_n, _a_r_g_c___r_e_t_u_r_n)
  19.          Display *_d_i_s_p_l_a_y;
  20.          Window _w;
  21.          char ***_a_r_g_v___r_e_t_u_r_n;
  22.          int *_a_r_g_c___r_e_t_u_r_n;
  23.  
  24. AARRGGUUMMEENNTTSS
  25.        _a_r_g_c     Specifies the number of arguments.
  26.  
  27.        _a_r_g_c___r_e_t_u_r_n
  28.          Returns the number of arguments returned.
  29.  
  30.        _a_r_g_v     Specifies the application's argument list.
  31.  
  32.        _a_r_g_v___r_e_t_u_r_n
  33.          Returns the application's argument list.
  34.  
  35.        _d_i_s_p_l_a_y     Specifies the connection to the X server.
  36.  
  37.        _w     Specifies the window.
  38.  
  39. DDEESSCCRRIIPPTTIIOONN
  40.        The _X_S_e_t_C_o_m_m_a_n_d function sets the command and arguments
  41.        used to invoke the application.    (Typically, argv is the
  42.        argv array of your main program.)  If the strings are not
  43.        in the Host Portable Character Encoding, the result is
  44.        implementation-dependent.
  45.  
  46.        _X_S_e_t_C_o_m_m_a_n_d can generate _B_a_d_A_l_l_o_c and _B_a_d_W_i_n_d_o_w errors.
  47.  
  48.        The _X_G_e_t_C_o_m_m_a_n_d function reads the WM_COMMAND property
  49.        from the specified window and returns a string list.  If
  50.        the WM_COMMAND property exists, it is of type STRING and
  51.        format 8.  If sufficient memory can be allocated to con-
  52.        tain the string list, _X_G_e_t_C_o_m_m_a_n_d fills in the argv_return
  53.        and argc_return arguments and returns a nonzero status.
  54.        Otherwise, it returns a zero status.  If the data returned
  55.        by the server is in the Latin Portable Character Encoding,
  56.        then the returned strings are in the Host Portable Charac-
  57.        ter Encoding.  Otherwise, the result is implementation-
  58.        dependent.  To free the memory allocated to the string
  59.        list, use _X_F_r_e_e_S_t_r_i_n_g_L_i_s_t.
  60.  
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XSetCommand(3X11)      XLIB FUNCTIONS    XSetCommand(3X11)
  71.  
  72.  
  73. PPRROOPPEERRTTIIEESS
  74.        WM_COMMAND
  75.          The command and arguments, null-separated, used
  76.          to invoke the application.
  77.  
  78. DDIIAAGGNNOOSSTTIICCSS
  79.        _B_a_d_A_l_l_o_c     The server failed to allocate the requested
  80.          resource or server memory.
  81.  
  82.        _B_a_d_W_i_n_d_o_w A value for a Window argument does not name a
  83.          defined Window.
  84.  
  85. SSEEEE AALLSSOO
  86.        XAllocClassHint(3X11), XAllocIconSize(3X11), XAllocSize-
  87.        Hints(3X11), XAllocWMHints(3X11), XSetTransient-
  88.        ForHint(3X11), XSetTextProperty(3X11), XSetWMClientMa-
  89.        chine(3X11), XSetWMColormapWindows(3X11), XSetWMIcon-
  90.        Name(3X11), XSetWMName(3X11), XSetWMProperties(3X11),
  91.        XSetWMProtocols(3X11), XStringListToTextProperty(3X11)
  92.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  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.