guiGetValue {fgui} | R Documentation |
Getting and Setting Values
Description
guiGetValue
and guiGetAllValues
are used for getting the values of the objects that you created. This is useful to make more customized responses to user inputs.
The guiGet and guiSet routines get at more internal code to the interface. In particular guiSet can set some internal constants.
Usage
guiGetValue( i )
guiGetAllValues()
guiSetValue( i, value )
guiSet( x, value )
guiGet( x, mode="any", ifnotfound=NA )
guiGetSafe( x, ifnotfound=NA )
Arguments
i |
Which item in the list to return. If a string, the name of the corresponding arg. If numeric, the index to the arg. |
x |
String to represent the object. See examples below for constants. |
mode |
See |
ifnotfound |
Value to return if not found. |
value |
Value to set in the namespace. |
Details
guiGetAllValues
returns a list of all values of objects created, versus just one specific value. Values are returned as strings, or numeric, depending on the value (it attemps to convert everything to numeric, on failure, returns the string).
guiSet
can be used to set values.
Examples
## Not run:
values <- guiGetAllValues()
value1 <- guiGetValue(1)
## End(Not run)
## Not run:
## These are the constants that you can modify
## to change the way things are displayed.
guiSet( "SLIDER_LENGTH", 500 )
guiSet( "ENTRY_WIDTH", 40 )
guiSet( "LIST_HEIGHT", 15 )
guiSet( "LIST_WIDTH", 15 )
guiSet( "EDIT_WIDTH", 65 )
guiSet( "EDIT_HEIGHT", 5 )
## End(Not run)