oneVScrList           package:widgetTools           R Documentation

_A _f_u_n_c_t_i_o_n _t_h_a_t _c_r_e_a_t_e_s _a _g_r_o_u_p_s _o_f _l_i_s_t _b_o_x_e_s _s_h_a_r_i_n_g _a _s_i_n_g_l_e
_v_e_r_t_i_c_a_l _s_c_r_o_l_l _b_a_r

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

     This function creates a group of list boxes what share a common
     vertical scroll bar. Values in all the list boxes scroll up or
     down when the scroll bar is dragged

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

     oneVScrList(base, data)

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

    base: 'base' a tkwin object that will be the container of the list
          boxes to be created

    data: 'data' a matrix with data to be put in the list boxes

_D_e_t_a_i_l_s:

     The matrix should have names for its columns. The names of the
     list boxes to be created will be the same as the corresponding
     columns of the matrix.

     Data in the list boxes can be sorted based on values in any of the
     list boxes.

_V_a_l_u_e:

     This function returns a list containing the tkwin objects of the
     list boxes created.

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

     Jianhua Zhang

_R_e_f_e_r_e_n_c_e_s:

     tcltk

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

     'dropdownList', 'tooltip'

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

         ## Not run: 
             ## These cannot be run by examples() but should be OK when pasted
             ## into an interactive R session with the widgetTools package loaded
             
             testData <- matrix(c(1:50, 100:51), ncol = 2)
             colnames(testData) <- c("Column 1", "Column 2")
             base <- tktoplevel()
             tt <- oneVScrList(base, testData)

             # Destroy toplevel widget
             # tkdestroy(base)
         ## End(Not run)

