updateControlWindow {iSPlot}R Documentation

Update the Control Window

Description

updateControlWindow updates the control window to reflect which menu item was selected. updateControlWindow knows which menu item was selected by getting the environment variable, curAction, from controlEnv. For example, if 'open data' under the file menu was chosen, then curAction will be set to "opend" in the function, updateCurAction, and the control window will show a list of data objects that can be opened. Note that updateControlWindow is meant to be called from updateCurAction. If curAction does not match any of the items in the switch statement, then the default is to perform do.call on curAction (so it assumes that curAction is the name of a function for the default behavior). If do.call is used, then the parameters in ... are sent to that function.

Usage

updateControlWindow()

Arguments

... extra parameters in case curAction is a function name that refers to a function with parameters

Author(s)

Elizabeth Whalen

See Also

updateCurAction

Examples

  if (interactive())
  {
    createControlWindow()
    # normally would not want to call updateControlWindow directly
    assign("curAction","opend",controlEnv)
    updateControlWindow()
  }

[Package iSPlot version 1.0.3 Index]