diff options
author | rjohnson <rjohnson@noemail.net> | 1998-04-01 09:37:39 (GMT) |
---|---|---|
committer | rjohnson <rjohnson@noemail.net> | 1998-04-01 09:37:39 (GMT) |
commit | 1d0efcbe267f2c0eb73869862522fb20fb2d63ca (patch) | |
tree | 3100714738a7941b590efee466a774862f9671c3 /doc/optionMenu.n | |
parent | 0fd5c6ed04f661825c13076a82740af74e8f9872 (diff) | |
download | tk-1d0efcbe267f2c0eb73869862522fb20fb2d63ca.zip tk-1d0efcbe267f2c0eb73869862522fb20fb2d63ca.tar.gz tk-1d0efcbe267f2c0eb73869862522fb20fb2d63ca.tar.bz2 |
Initial revision
FossilOrigin-Name: 8922a99ffbe6bf4c9a879291efacef5ce9caa2aa
Diffstat (limited to 'doc/optionMenu.n')
-rw-r--r-- | doc/optionMenu.n | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/optionMenu.n b/doc/optionMenu.n new file mode 100644 index 0000000..3303847 --- /dev/null +++ b/doc/optionMenu.n @@ -0,0 +1,40 @@ +'\" +'\" Copyright (c) 1990-1994 The Regents of the University of California. +'\" Copyright (c) 1994-1996 Sun Microsystems, Inc. +'\" +'\" See the file "license.terms" for information on usage and redistribution +'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. +'\" +'\" SCCS: @(#) optionMenu.n 1.5 96/03/26 18:25:21 +'\" +.so man.macros +.TH tk_optionMenu n 4.0 Tk "Tk Built-In Commands" +.BS +'\" Note: do not modify the .SH NAME line immediately below! +.SH NAME +tk_optionMenu \- Create an option menubutton and its menu +.SH SYNOPSIS +\fBtk_optionMenu \fIw varName value \fR?\fIvalue value ...\fR? +.BE + +.SH DESCRIPTION +.PP +This procedure creates an option menubutton whose name is \fIw\fR, +plus an associated menu. +Together they allow the user to select one of the values +given by the \fIvalue\fR arguments. +The current value will be stored in the global variable whose +name is given by \fIvarName\fR and it will also be displayed as the label +in the option menubutton. +The user can click on the menubutton to display a menu containing +all of the \fIvalue\fRs and thereby select a new value. +Once a new value is selected, it will be stored in the variable +and appear in the option menubutton. +The current value can also be changed by setting the variable. +.PP +The return value from \fBtk_optionMenu\fR is the name of the menu +associated with \fIw\fR, so that the caller can change its configuration +options or manipulate it in other ways. + +.SH KEYWORDS +option menu |