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


next up previous contents index
Next: infowindow - Function Up: guiutils - Module Previous: barchart.done - Function


choicewindow - Function



Package display
Module guiutils


Display a question in a window with multiple choice answers


Synopsis
choicewindow(question, choices, interactive, timeout, ws) include "choicewindow.g"


Description
The choicewindow is a simple dialog window that lets one pose a question to a user with a limited number of responses. The window will dismiss itself after the timeout period specified returning the first choice in the choices lists. If the user make a selection before the timeout it will return the user's choice.



Arguments

question   The question you want answered
    Allowed: string
choices   Vector of choices
    Allowed: string
interactive   Is the session iteractive
    Allowed: Boolean
    Default: has_gui()
timeout   specifies the number of ticks in .2s for the window to automatically dismiss itself
    Allowed: integer
    Default: 150
ws   widget server
    Allowed: agent
    Default: dws


Returns
T (or fail)


Example
include 'choicewindow.g';
cw := choicewindow('Do you want to continue?', "Yes No");





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