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


next up previous contents index
Next: catalog.selectcallback - Function Up: catalog - Tool Previous: catalog.done - Function


catalog.setselectcallback - Function



Package utility
Module catalog
Tool catalog


Set the selectcallback function


Synopsis
setselectcallback()


Description
Set the callback function used when the send or sendandddismiss button is pressed in the gui. It also activates those buttons. The callback function gets one argument which is a string containing the full name of the selected file. If no file is selected, the directory is returned.
When the break button is pressed in the gui, the selectcallback function is called with the argument unset(). Thereafter the the selectcallback is unset.
If the argument given to setselectcallback is not a function, the selectcallback is unset.



Returns
Bool


Example
  include "catalog.g";
  aa := function (f) { if (!is_unset(f)) print f}
  dc.setselectcallback(aa)





next up previous contents index
Next: catalog.selectcallback - Function Up: catalog - Tool Previous: catalog.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