guiTextInput         package:plotAndPlayGTK         R Documentation

_A_l_l_o_w _u_s_e_r _t_o _e_n_t_e_r _a_n_d _e_d_i_t _t_e_x_t

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

     A text field in a dialog box.

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

     guiTextInput(text = "", title = "Text Input", prompt = "", oneLiner = F, 
                  accepts.tab = T, wrap.mode = c("none", "char", "word", "word_char"), 
                  size = c(600, 320), width.chars = -1, focus.on.ok = !oneLiner)

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

    text: initial text to put in the text box. 

   title: the window title. For 'editAsText' the default is based on
          'x'. 

  prompt: a prompt to display (as a 'gtkLabel' above the text box. 

oneLiner: whether to use a single-line 'gtkEntry' rather than a
          'gtkTextView'. 

accepts.tab: whether a tab can be typed in the text box; otherwise it
          changes the focus. 

wrap.mode: type of text wrapping, from 'GtkWrapMode'. 

    size: default window size as 'c(x, y)' pixels, used when
          'oneLiner=F'. 

width.chars: width of the entry in characters, used when 'oneLiner=T'. 

focus.on.ok: whether the initial keyboard focus is on the OK button.
          Otherwise it will be in the text box. 

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

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

     'guiTextInput' returns the text from the text box.

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

     Felix Andrews felix@nfrac.org

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

     'edit'

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

     ## Not run: 

     guiTextInput()

     guiTextInput(oneLiner=T)

     ## End(Not run)

