Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | display | |
Module | widgets | |
Tool | extendoptionmenu |
Select an item in the menu by label
Synopsis
selectlabel(label)
Arguments
label
The menu item label
Allowed:
Same type as the array ``labels'' used in construction
Returns
Bool
Description
This tool function selects a menu item by its label. It is equivalent
to selecting the item with the GUI interface. If the label is invalid,
it returns F.
Example
- labels := "m mm cm";
- f := frame();
- m := extendoptionmenu(f, labels)
- m.selectlabel('mm');
- m.getlabel();
mm
-
Returns
Bool
Description
This tool function selects a menu item by its name. It is equivalent
to selecting the item with the GUI interface. If the name is invalid,
it returns F.
Example
- labels := "m mm cm";
- names := "A B C";
- f := frame();
- m := extendoptionmenu(f, labels, names);
- m.selectname("C");
- m.getindex();
3
-
Next: extendoptionmenu.getindex - Function
Up: extendoptionmenu - Tool
Previous: extendoptionmenu.selectindex - 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