Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | display | |
Module | widgets | |
Tool | checkmenu |
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. If you don't specify the state
variable, the check button is given the opposite state to
its current state.
Select an item in the menu by index
Synopsis
selectindex(idx, state)
Arguments
idx
The menu item index
Allowed:
Integer
state
The state for the check box
Allowed:
T of F
Default:
Opposite state
Returns
Bool
Description
Example
- f := frame();
- m := checkmenu(f, 'Models', "gaussian point");
- m.getstates()
[F F]
- m.selectindex(2);
- m.getstates()
[F T]
- m.selectindex(2, T);
[F T]
-
Next: checkmenu.selectname - Function
Up: checkmenu - Tool
Previous: checkmenu.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