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


next up previous contents index
Next: extendoptionmenu - Tool Up: dialogbox - Tool Previous: dialogbox - Tool


dialogbox - Constructor



Package display
Module widgets
Tool dialogbox


Construct a dialogbox


Synopsis
dialogbox(label, title, type, value, hlp, helpOnLabel, widgetset)


Arguments

label The label for the entry box
Allowed: String
Default: 'Enter value'
title The title for the entry box
Allowed: String
Default: 'Dialog box'
type The type of entry widgets
Allowed: 'entry', 'file', 'string', 'boolean', 'measure', 'quantity', 'record', 'region', 'scalar, 'untyped'
Default: 'entry'
value The initial value to insert
Allowed: Appropriate type
hlp Popup help for entry box
Allowed: String
helpOnLabel Is the popup help on the label or the entry box
Allowed: T or F
Default: T
widgetset The widget server to use
Allowed: widgetserver object
Default: dws


Returns
String


Description



Example
include 'dialogbox.g'   
txt := dialogbox(label='Enter colour', title='Colour chooser', type='string', value='Blue');
if (!is_fail(txt)) {
   print 'Selected colour=', txt
} else {
  print 'Colour selection aborted'
}

The initial value of `blue' is inserted.








next up previous contents index
Next: extendoptionmenu - Tool Up: dialogbox - Tool Previous: dialogbox - Tool   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