updateControlWindow          package:iSPlot          R Documentation

_U_p_d_a_t_e _t_h_e _C_o_n_t_r_o_l _W_i_n_d_o_w

_D_e_s_c_r_i_p_t_i_o_n:

     updateControlWindow updates the control window to reflect which 
     menu item was selected.  updateControlWindow knows which menu 
     item was selected by getting the environment variable, curAction, 
     from controlEnv.  For example, if 'open data' under the file menu 
     was chosen, then curAction will be set to "opend" in the function,
      updateCurAction, and the control window will show a list of data 
     objects that can be opened.  Note that updateControlWindow is
     meant  to be called from updateCurAction.  If curAction does not
     match any of the items in the switch statement, then the default
     is to perform do.call on curAction (so it assumes that curAction
     is the name of a  function for the default behavior).  If do.call
     is used, then the  parameters in ... are sent to that function.

_U_s_a_g_e:

     updateControlWindow()

_A_r_g_u_m_e_n_t_s:

     ...: extra parameters in case curAction is a function name that
          refers to a function with parameters

_A_u_t_h_o_r(_s):

     Elizabeth Whalen

_S_e_e _A_l_s_o:

     'updateCurAction'

_E_x_a_m_p_l_e_s:

       if (interactive())
       {
         createControlWindow()
         # normally would not want to call updateControlWindow directly
         assign("curAction","opend",controlEnv)
         updateControlWindow()
       }

