Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | display | |
Module | widgets | |
Tool | checkmenu |
This tool function sets the label of the checkmenu. If you set width=-1 then the menu button width will be left as it is. Thus if you
constructed with width=0, the button will resize itself to
accomodate the new text. If you used a specific non-zero width at
construction time, setting width=-1 now will leave the button at
that width. Setting width=0 will now force a resize and setting
width to some positive integer will resize to that width.
Set the label of the checkmenu
Synopsis
setlabel(label, width)
Arguments
label
The label
Allowed:
String
width
Width of button
Allowed:
Integer
Default:
-1
Returns
Bool
Description
Example
- f := frame();
- m := checkmenu(f, 'Animals', "dog cat");
- m.getlabel()
Animals
- m.setlabel('Small animals');
- m.getlabel()
Small animals
-
Next: checkmenu.reset - Function
Up: checkmenu - Tool
Previous: checkmenu.findvalue - 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