Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: autogui.modifygui - Function Up: autogui - Tool Previous: autogui.done - Function


autogui.fillgui - Function



Package display
Module widgets
Tool autogui


Fill the autogui tool with updated values


Synopsis
fillgui(wparams, what)


Arguments

wparams new parameter values
Allowed: full-form parameter record
what which sub-field to extract new values from
Allowed: 'value' or 'default'
Default: 'value'


Returns
T


Description

This function is mostly used internally to construct and fill the GUI. However, it can be used externally to refresh the GUI to a new set of parameters.



Example

For example, suppose you want to add a ``Restore defaults'' button to your autogui. When the user presses it, then the autogui tool will be told to re-fill the GUI with what='default'.

# ... myautogui setup already ...
myf := myautogui.buttonbar();
myb := dws.button(myf, 'Restore defaults');
whenever myb->press do {
  myautogui.fillgui(parameters, 'default');
}
# ...
Of course, we should also update the value fields of the parameters to be the same as the default fields, but that is left to the reader...





next up previous contents index
Next: autogui.modifygui - Function Up: autogui - Tool Previous: autogui.done - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15