Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | display | |
Module | widgets | |
Tool | guientry |
The allowed formats for user input are:
Make a widget for a choice entry
Synopsis
choice(parent, value, default, options, allowunset, editable, hlp)
Description
Constructs a widget for the choice of one string from many.
Arguments
parent
Parent of the menu
Allowed:
Tk frame
value
Value to insert on start
Allowed:
Variable or unset
default
Default value
Allowed:
Variable
options
Possible choices
Allowed:
Vector of strings
allowunset
Allow unset values
Allowed:
Boolean
Default:
T
editable
Is the entry editable by the user
Allowed:
Boolean
Default:
T
hlp
Popup help string
Allowed:
String
Default:
Unset
Returns
guientry widget
Example
include 'guientry.g'
f := dws.frame();
ge := dws.guientry();
ch := ge.choice(f, value='a', options="a b c");
whenever ch->value do {
print 'Choice selected is ', ch.get();
}
Next: guientry.check - Function
Up: guientry - Tool
Previous: guientry.boolean - 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