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


next up previous contents index
Next: optionmenu.selectindex - Function Up: optionmenu - Tool Previous: optionmenu.extend - Function


optionmenu.replace - Function



Package display
Module widgets
Tool optionmenu


Replace the menu with the provided items


Synopsis
replace(labels, names, values, width)


Arguments

labels The menu item labels
Allowed: Vector of strings
Default: Empty menu
names The menu item names
Allowed: Vector of strings
Default: Empty menu
values The menu item values
Allowed: Vector of anything
Default: Empty menu
width Width in character units
Allowed: Integer
Default: Auto-scale


Returns
Bool



Description

This tool function replaces the menu with the supplied items.



Example
- labels := "Absolute RelRef RelCen";
- f := frame();
- m := optionmenu(f, labels);
m.getlabels();
Absolute RelRef RelCen
- m.replace("a b c", "A B C", [10,20,40]);
- m.getlabels();
a b c
- m.getnames();
A B C
- m.getvalues();
[10 20 40]
-





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