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


next up previous contents index
Next: checkmenu.getlabel - Function Up: checkmenu - Tool Previous: checkmenu.selectname - Function


checkmenu.selectvalue - Function



Package display
Module widgets
Tool checkmenu


Select an item in the menu by value


Synopsis
selectvalue(value, state)


Arguments

value The menu item value
Allowed: Same type as at construction
state The state for the check box
Allowed: T of F
Default: Opposite state


Returns
Bool



Description

This tool function selects a menu item by its value. It is equivalent to selecting the item with the GUI interface. If the value 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.



Example
- f := frame();
- m := checkmenu(f, 'Models', "gaussian point", [10,20])
- m.getstates()
[F F]
- m.selectvalue(10)
- m.getstates()
[T F]
- m.selectvalue(10, T);
[T F]
-





next up previous contents index
Next: checkmenu.getlabel - Function Up: checkmenu - Tool Previous: checkmenu.selectname - 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