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