📄 optionmenu.n
字号:
'\"'\" 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 NAMEtk_optionMenu \- Create an option menubutton and its menu.SH SYNOPSIS\fBtk_optionMenu \fIw varName value \fR?\fIvalue value ...\fR?.BE.SH DESCRIPTION.PPThis procedure creates an option menubutton whose name is \fIw\fR,plus an associated menu.Together they allow the user to select one of the valuesgiven by the \fIvalue\fR arguments.The current value will be stored in the global variable whosename is given by \fIvarName\fR and it will also be displayed as the labelin the option menubutton.The user can click on the menubutton to display a menu containingall of the \fIvalue\fRs and thereby select a new value.Once a new value is selected, it will be stored in the variableand appear in the option menubutton.The current value can also be changed by setting the variable..PPThe return value from \fBtk_optionMenu\fR is the name of the menuassociated with \fIw\fR, so that the caller can change its configurationoptions or manipulate it in other ways..SH KEYWORDSoption menu
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -