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.setforeground - Function Up: optionmenu - Tool Previous: optionmenu.seteventmask - Function


optionmenu.setlabel - Function



Package display
Module widgets
Tool optionmenu


Set the label of the optionmenu


Synopsis
setlabel(label)


Arguments

label The label
Allowed: String


Returns
Bool



Description

This tool function sets the label of the optionmenu. This label can be anything, it does not have to be in the optionmenu list of labels.



Example
- labels := 
- values := [1,2,3];
- f := frame();
- m := optionmenu(f, labels=labels, values=values);
- m.setlabel('fish');
- m.getlabel()
fish
- m.getlabels()
Absolute RelRef RelCen

Although the label of the menu is now ``fish'', the labels of the items in the menu are unchanged.





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