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.extend - Function Up: checkmenu - Tool Previous: checkmenu - Tool


checkmenu - Constructor



Package display
Module widgets
Tool checkmenu


Construct a checkmenu


Synopsis
checkmenu(parent, label, names, values, hlp, hlp2, padx, pady, width, height, justify, font, relief, borderwidth, foreground, background, disabled, anchor, fill, widgetset)


Arguments

parent Parent of the menu
Allowed: Widget
label The label of the menu
Allowed: String
Default: ``checkmenu''
names The menu item names
Allowed: Vector of strings
Default: Empty menu
values The menu item values
Allowed: Vector of anything
Default: Empty menu
hlp Short popuphelp text
Allowed: String
Default: No help
hlp2 Long popuphelp text
Allowed: String
Default: No help
padx Horizontal padding around text
Allowed: Integer
Default: 7
pady Vertical padding around text
Allowed: Integer
Default: 3
width Width in character units
Allowed: Integer
Default: 0 [Auto-scale]
height Height in character units
Allowed: Integer
Default: 1
justify Justification of text
Allowed: String from `center', 'left', 'right'
Default: `center'
font Font of text
Allowed: X font
relief Edge relief
Allowed: String from `flat', `ridge', `raised', `sunken', `groove'
Default: `groove'
borderwidth Border width
Allowed: Integer
Default: 2
foreground Color of text
Allowed: X color
Default: `black'
background Background color
Allowed: X color
Default: `lightgrey'
disabled Is inactivated ?
Allowed: Boolean
Default: F
anchor Location of text
Allowed: String from 'c', 'n', 's', 'e', 'w', 'ne', 'nw', 'se', 'sw'
Default: `c'
fill How to expand when resized
Allowed: String from `x', `y', `both', `none'
Default: 'none'
widgetset The widget server to use
Allowed: widgetserver tool
Default: dws


Returns
Agent


Description



Example
- include 'checkmenu.g'   
- f := frame();
- hlp := 'Select type of model to fit';
- m := checkmenu(f, 'Models', "gaussian disk point", [1,2,3], hlp);

The values vector, if not given, defaults to the names vector.





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