makeViewer            package:widgetTools            R Documentation

_P_u_t _a _S_c_r_o_l_l_a_b_l_e _L_i_s_t _B_o_x _i_n_t_o _a _t_k_W_i_d_g_e_t.

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

     This function associates a tk listbox with a scroll bar and then
     puts them into a given tk widget.

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

     makeViewer(target, vWidth = "", vHeight = "", hScroll = FALSE,
     vScroll = TRUE, what = "list", side = "left", text = "")

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

  target: tk widget that can accommodate a list box.

vWidth, vHeight: integers giving width and height of the listbox.

hScroll, vScroll: logicals indicating whether a horizontal or vertical
          scroll bar should be associated with the list box.

    what: A character string indicating the type of the viewer to be
          put on a widget. Valid types include "list" for list box,
          "canvas", and "text" for text box

    side: A character string for the geometry management of the viewer
          on the widget. Valid values include "left", "right", "top",
          and "bottom"

    text: A character string to be displayed

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

     Tk list boxes (or canvas, text box) and scroll bars are separate
     widgets. This function provides a common interface to put them
     together and functionally associated.

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

     This function does not return any value.

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

     Jianhua (John) Zhang

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

     'tklistbox' (from the 'tcltk' package).

_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
         
         # Create a top level window and put a list box in it
         base <- tktoplevel()
         listBox <- makeViewer(base)

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

