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

  1.  
  2.  
  3.  
  4. XtAddGrab(3Xt)           XT FUNCTIONS           XtAddGrab(3Xt)
  5.  
  6.  
  7. NNAAMMEE
  8.        XtAddGrab, XtRemoveGrab - redirect user input to a modal
  9.        widget
  10.  
  11. SSYYNNTTAAXX
  12.        void XtAddGrab(_w, _e_x_c_l_u_s_i_v_e, _s_p_r_i_n_g___l_o_a_d_e_d)
  13.          Widget _w;
  14.          Boolean _e_x_c_l_u_s_i_v_e;
  15.          Boolean _s_p_r_i_n_g___l_o_a_d_e_d;
  16.  
  17.        void XtRemoveGrab(_w)
  18.          Widget _w;
  19.  
  20. AARRGGUUMMEENNTTSS
  21.        _e_x_c_l_u_s_i_v_e Specifies whether user events should be dis-
  22.          patched exclusively to this widget or also to
  23.          previous widgets in the cascade.
  24.  
  25.        _s_p_r_i_n_g___l_o_a_d_e_d
  26.          Specifies whether this widget was popped up
  27.          because the user pressed a pointer button.
  28.  
  29.        _w     Specifies the widget to add to or remove from
  30.          the modal cascade.
  31.  
  32. DDEESSCCRRIIPPTTIIOONN
  33.        The _X_t_A_d_d_G_r_a_b function appends the widget (and associated
  34.        parameters) to the modal cascade and checks that exclusive
  35.        is _T_r_u_e if spring_loaded is _T_r_u_e.  If these are not _T_r_u_e,
  36.        _X_t_A_d_d_G_r_a_b generates an error.
  37.  
  38.        The modal cascade is used by _X_t_D_i_s_p_a_t_c_h_E_v_e_n_t when it tries
  39.        to dispatch a user event.  When at least one modal widget
  40.        is in the widget cascade, _X_t_D_i_s_p_a_t_c_h_E_v_e_n_t first determines
  41.        if the event should be delivered.  It starts at the most
  42.        recent cascade entry and follows the cascade up to and
  43.        including the most recent cascade entry added with the
  44.        exclusive parameter _T_r_u_e.
  45.  
  46.        This subset of the modal cascade along with all descen-
  47.        dants of these widgets comprise the active subset.  User
  48.        events that occur outside the widgets in this subset are
  49.        ignored or remapped.  Modal menus with submenus generally
  50.        add a submenu widget to the cascade with exclusive _F_a_l_s_e.
  51.        Modal dialog boxes that need to restrict user input to the
  52.        most deeply nested dialog box add a subdialog widget to
  53.        the cascade with exclusive _T_r_u_e.     User events that occur
  54.        within the active subset are delivered to the appropriate
  55.        widget, which is usually a child or further descendant of
  56.        the modal widget.
  57.  
  58.        Regardless of where on the screen they occur, remap events
  59.        are always delivered to the most recent widget in the
  60.        active subset of the cascade that has spring_loaded _T_r_u_e,
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XtAddGrab(3Xt)           XT FUNCTIONS           XtAddGrab(3Xt)
  71.  
  72.  
  73.        if any such widget exists.
  74.  
  75.        The _X_t_R_e_m_o_v_e_G_r_a_b function removes widgets from the modal
  76.        cascade starting at the most recent widget up to and
  77.        including the specified widget.    It issues an error if the
  78.        specified widget is not on the modal cascade.
  79.  
  80. SSEEEE AALLSSOO
  81.        _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
  82.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  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.