Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | display | |
Module | widgets | |
Tool | combobox |
Get a reference to the agent which emits events from this combobox.
Synopsis
agent()
Returns
a glish agent
Description
This combobox agent emits a ``return'' when the user hits return in
the entry, a ``press'' the user presses the arrow button, a ``select'' when
then makes a selection in the listbox, and ``clear'' when the user presses
the clear button on the listbox (which is only present if canclearpopup is T.
A ``select'' event also follows a ``return'' event if addonreturn is T.
Example
f := frame()
cb := combobox(f,'colors')
whenever cb.agent()->* do {
print $name, ' event seen, value is : ', $value
}
Next: combobox.pixelwidth - Function
Up: combobox - Tool
Previous: combobox - Constructor
  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