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


next up previous contents index
Next: filechooser - Function Up: guiutils - Module Previous: donechoice - Function


exitchoice - Function



Package display
Module guiutils


A choice dialog appropriate for exit


Synopsis
exitchoice(widgetset)

include "choice.g"



Description
This is a choice appropriate for use with a GUI ``Exit'' button. According to the GUI Guidelines, ``Exit'' is used to allow the user to exit from glish. It is usually desirable to ensure that the user really meant to exit glish. This function exists so that the choice dialog boxes used with ``Exit'' all have the same appearance.

This function returns a boolean T if the user has pressed the "yes" button. In all other cases, a F will be returned.



Arguments

widgetset   Which widgetserver to use
    Allowed: widgetserver
    Default: dws


Returns
boolean



Example
reallyexit := exitchoice();
if (reallyexit) {print 'Bye!'; exit;};





next up previous contents index
Next: filechooser - Function Up: guiutils - Module Previous: donechoice - 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