guiTextInput {plotAndPlayGTK}R Documentation

Allow user to enter and edit text

Description

A text field in a dialog box.

Usage

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)

Arguments

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.

Details

Value

guiTextInput returns the text from the text box.

Author(s)

Felix Andrews felix@nfrac.org

See Also

edit

Examples

## Not run: 

guiTextInput()

guiTextInput(oneLiner=T)

## End(Not run)

[Package plotAndPlayGTK version 0.8.78 Index]