home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cato / Xm / XmVaCreateSimplePopupMenu.z / XmVaCreateSimplePopupMenu
Encoding:
Text File  |  2002-10-03  |  13.1 KB  |  265 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmVVVVaaaaCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu((((3333UUUUXXXXNNNN))))IIIIXXXX SSSSyyyysssstttteeeemmmmXXXXmmmmVVVVVVVVaaaaCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmVVVVaaaaCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu - A RowColumn widget convenience
  10.           creation function
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           ####iiiinnnncccclllluuuuddddeeee <<<<XXXXmmmm////RRRRoooowwwwCCCCoooolllluuuummmmnnnn....hhhh>>>>
  14.  
  15.           WWWWiiiiddddggggeeeetttt XXXXmmmmVVVVaaaaCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu ((((_p_a_r_e_n_t, _n_a_m_e, _c_a_l_l_b_a_c_k, _a_r_g...))))
  16.                WWWWiiiiddddggggeeeetttt    _p_a_r_e_n_t;;;;
  17.                SSSSttttrrrriiiinnnngggg    _n_a_m_e;;;;
  18.                XXXXttttCCCCaaaallllllllbbbbaaaacccckkkkPPPPrrrroooocccc_c_a_l_l_b_a_c_k;;;;
  19.  
  20.  
  21.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  22.           This page documents version 1.2 of the Motif library.
  23.  
  24.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  25.           XXXXmmmmVVVVaaaaCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu creates an instance of a RowColumn
  26.           widget of type XXXXmmmmMMMMEEEENNNNUUUU____PPPPOOOOPPPPUUUUPPPP and returns the associated
  27.           widget ID.  This routine uses the ANSI C variable-length
  28.           argument list (varargs) calling convention.
  29.  
  30.           This routine creates a Popup MenuPane and its button
  31.           children.  The name of each button is button__n, where _n is
  32.           an integer from 0 to one minus the number of buttons in the
  33.           menu.  The name of each separator is separator__n, where _n is
  34.           an integer from 0 to one minus the number of separators in
  35.           the menu.  The name of each title is label__n, where _n is an
  36.           integer from 0 to one minus the number of titles in the
  37.           menu.  Buttons, separators, and titles are named and created
  38.           in the order in which they are specified in the variable
  39.           portion of the argument list.
  40.  
  41.  
  42.           _p_a_r_e_n_t Specifies the widget ID of the parent of the
  43.                  MenuShell
  44.  
  45.           _n_a_m_e   Specifies the name of the created widget
  46.  
  47.           _c_a_l_l_b_a_c_k
  48.                  Specifies a callback procedure to be called when a
  49.                  button is activated or when its value changes.  This
  50.                  callback function is added to each button after
  51.                  creation.  For a CascadeButtonGadget or a
  52.                  PushButtonGadget, the callback is added as the
  53.                  button's XXXXmmmmNNNNaaaaccccttttiiiivvvvaaaatttteeeeCCCCaaaallllllllbbbbaaaacccckkkk, and it is called when
  54.                  the button is activated.  For a ToggleButtonGadget,
  55.                  the callback is added as the button's
  56.                  XXXXmmmmNNNNvvvvaaaalllluuuueeeeCCCChhhhaaaannnnggggeeeeddddCCCCaaaallllllllbbbbaaaacccckkkk, and it is called when the
  57.                  button's value changes.  The button number is
  58.                  returned in the _c_l_i_e_n_t__d_a_t_a field.
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmVVVVaaaaCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu((((3333UUUUXXXXNNNN))))IIIIXXXX SSSSyyyysssstttteeeemmmmXXXXmmmmVVVVVVVVaaaaCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu((((3333XXXX))))
  71.  
  72.  
  73.  
  74.           The variable portion of the argument list consists of groups
  75.           of arguments.  The first argument in each group is a
  76.           constant or a string and determines which arguments follow
  77.           in that group.  The last argument in the list must be NULL.
  78.           Following are the possible first arguments in each group of
  79.           varargs:
  80.  
  81.  
  82.           XXXXmmmmVVVVaaaaCCCCAAAASSSSCCCCAAAADDDDEEEEBBBBUUUUTTTTTTTTOOOONNNN
  83.                  This is followed by two additional arguments.  The
  84.                  set specifies one button in the PopupMenu and some of
  85.                  its resource values.  The button created is a
  86.                  CascadeButtonGadget.  Following are the additional
  87.                  two arguments, in this order:
  88.  
  89.  
  90.                  _l_a_b_e_l   The label string, of type XmString.
  91.  
  92.                  _m_n_e_m_o_n_i_c
  93.                          The mnemonic, of type KeySym.
  94.  
  95.  
  96.           XXXXmmmmVVVVaaaaPPPPUUUUSSSSHHHHBBBBUUUUTTTTTTTTOOOONNNN
  97.                  This is followed by four additional arguments.  The
  98.                  set specifies one button in the PopupMenu and some of
  99.                  its resource values.  The button created is a
  100.                  PushButtonGadget.  Following are the additional four
  101.                  arguments, in this order:
  102.  
  103.  
  104.                  _l_a_b_e_l   The label string, of type XmString.
  105.  
  106.                  _m_n_e_m_o_n_i_c
  107.                          The mnemonic, of type KeySym.
  108.  
  109.                  _a_c_c_e_l_e_r_a_t_o_r
  110.                          The accelerator, of type String.
  111.  
  112.                  _a_c_c_e_l_e_r_a_t_o_r__t_e_x_t
  113.                          The accelerator text, of type XmString.
  114.  
  115.  
  116.           XXXXmmmmVVVVaaaaRRRRAAAADDDDIIIIOOOOBBBBUUUUTTTTTTTTOOOONNNN
  117.                  This is followed by four additional arguments.  The
  118.                  set specifies one button in the PopupMenu and some of
  119.                  its resource values.  The button created is a
  120.                  ToggleButtonGadget.  Following are the additional
  121.                  four arguments, in this order:
  122.  
  123.  
  124.                  _l_a_b_e_l   The label string, of type XmString.
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      XXXXmmmmVVVVaaaaCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu((((3333UUUUXXXXNNNN))))IIIIXXXX SSSSyyyysssstttteeeemmmmXXXXmmmmVVVVVVVVaaaaCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu((((3333XXXX))))
  137.  
  138.  
  139.  
  140.                  _m_n_e_m_o_n_i_c
  141.                          The mnemonic, of type KeySym.
  142.  
  143.                  _a_c_c_e_l_e_r_a_t_o_r
  144.                          The accelerator, of type String.
  145.  
  146.                  _a_c_c_e_l_e_r_a_t_o_r__t_e_x_t
  147.                          The accelerator text, of type XmString.
  148.  
  149.  
  150.           XXXXmmmmVVVVaaaaCCCCHHHHEEEECCCCKKKKBBBBUUUUTTTTTTTTOOOONNNN
  151.                  This is followed by four additional arguments.  The
  152.                  set specifies one button in the PopupMenu and some of
  153.                  its resource values.  The button created is a
  154.                  ToggleButtonGadget.  Following are the additional
  155.                  four arguments, in this order:
  156.  
  157.  
  158.                  _l_a_b_e_l   The label string, of type XmString.
  159.  
  160.                  _m_n_e_m_o_n_i_c
  161.                          The mnemonic, of type KeySym.
  162.  
  163.                  _a_c_c_e_l_e_r_a_t_o_r
  164.                          The accelerator, of type String.
  165.  
  166.                  _a_c_c_e_l_e_r_a_t_o_r__t_e_x_t
  167.                          The accelerator text, of type XmString.
  168.  
  169.  
  170.           XXXXmmmmVVVVaaaaTTTTIIIITTTTLLLLEEEE
  171.                  This is followed by one additional argument.  The
  172.                  pair specifies a title LabelGadget in the PopupMenu.
  173.                  Following is the additional argument:
  174.  
  175.  
  176.                  _t_i_t_l_e   The title string, of type XmString.
  177.  
  178.  
  179.           XXXXmmmmVVVVaaaaSSSSEEEEPPPPAAAARRRRAAAATTTTOOOORRRR
  180.                  This is followed by no additional arguments.  It
  181.                  specifies one separator in the PopupMenu.
  182.  
  183.           XXXXmmmmVVVVaaaaDDDDOOOOUUUUBBBBLLLLEEEE____SSSSEEEEPPPPAAAARRRRAAAATTTTOOOORRRR
  184.                  This is followed by no additional arguments.  It
  185.                  specifies one separator in the PopupMenu.  The
  186.                  separator type is XXXXmmmmDDDDOOOOUUUUBBBBLLLLEEEE____LLLLIIIINNNNEEEE.
  187.  
  188.           _r_e_s_o_u_r_c_e__n_a_m_e
  189.                  This is followed by one additional argument, the
  190.                  value of the resource, of type XtArgVal.  The pair
  191.                  specifies a resource and its value for the RowColumn
  192.  
  193.  
  194.  
  195.      Page 3                                          (printed 4/30/98)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      XXXXmmmmVVVVaaaaCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu((((3333UUUUXXXXNNNN))))IIIIXXXX SSSSyyyysssstttteeeemmmmXXXXmmmmVVVVVVVVaaaaCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu((((3333XXXX))))
  203.  
  204.  
  205.  
  206.                  widget.
  207.  
  208.           XXXXttttVVVVaaaaTTTTyyyyppppeeeeddddAAAArrrrgggg
  209.                  This is followed by four additional arguments.  The
  210.                  set specifies a resource and its value for the
  211.                  RowColumn widget.  A resource type conversion is
  212.                  performed if necessary.  Following are the additional
  213.                  four arguments, in this order:
  214.  
  215.  
  216.                  _n_a_m_e    The resource name, of type String.
  217.  
  218.                  _t_y_p_e    The type of the resource value supplied, of
  219.                          type String.
  220.  
  221.                  _v_a_l_u_e   The resource value (or a pointer to the
  222.                          resource value, depending on the type and
  223.                          size of the value), of type XtArgVal.
  224.  
  225.                  _s_i_z_e    The size of the resource value in bytes, of
  226.                          type int.
  227.  
  228.  
  229.           XXXXttttVVVVaaaaNNNNeeeesssstttteeeeddddLLLLiiiisssstttt
  230.                  This is followed by one additional argument of type
  231.                  XtVarArgsList.  This argument is a nested list of
  232.                  varargs returned by XXXXttttVVVVaaaaCCCCrrrreeeeaaaatttteeeeAAAArrrrggggssssLLLLiiiisssstttt.
  233.  
  234.  
  235.           For more information on variable-length argument lists, see
  236.           the X Toolkit Intrinsics documentation.
  237.  
  238.           A number of resources exist specifically for use with this
  239.           and other simple menu creation routines.  For a complete
  240.           definition of RowColumn and its associated resources, see
  241.           XXXXmmmmRRRRoooowwwwCCCCoooolllluuuummmmnnnn((((3333XXXX)))).
  242.  
  243.      RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  244.           Returns the RowColumn widget ID.
  245.  
  246.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  247.           XXXXmmmmCCCCrrrreeeeaaaatttteeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu((((3333XXXX)))), XXXXmmmmCCCCrrrreeeeaaaatttteeeeRRRRoooowwwwCCCCoooolllluuuummmmnnnn((((3333XXXX)))),
  248.           XXXXmmmmCCCCrrrreeeeaaaatttteeeeSSSSiiiimmmmpppplllleeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu((((3333XXXX)))), and XXXXmmmmRRRRoooowwwwCCCCoooolllluuuummmmnnnn((((3333XXXX)))).
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.      Page 4                                          (printed 4/30/98)
  262.  
  263.  
  264.  
  265.