📄 choosecolor.n
字号:
'\"'\" Copyright (c) 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: @(#) chooseColor.n 1.4 96/09/19 17:01:44'\" .so man.macros.TH tk_chooseColor n 4.2 Tk "Tk Built-In Commands".BS'\" Note: do not modify the .SH NAME line immediately below!.SH NAMEtk_chooseColor \- pops up a dialog box for the user to select a color..PP.SH SYNOPSIS\fBtk_chooseColor \fR?\fIoption value ...\fR?.BE.SH DESCRIPTION.PPThe procedure \fBtk_chooseColor\fR pops up a dialog box for theuser to select a color. The following \fIoption\-value\fR pairs arepossible as command line arguments:.TP\fB\-initialcolor\fR \fIcolor\fRSpecifies the color to display in the color dialog when it popsup. \fIcolor\fR must be in a form acceptable to the \fBTk_GetColor\fRfunction..TP\fB\-parent\fR \fIwindow\fRMakes \fIwindow\fR the logical parent of the color dialog. The colordialog is displayed on top of its parent window..TP\fB\-title\fR \fItitleString\fRSpecifies a string to display as the title of the dialog box. If thisoption is not specified, then a default title will be displayed..LPIf the user selects a color, \fBtk_chooseColor\fR will return thename of the color in a form acceptable to \fBTk_GetColor\fR. If theuser cancels the operation, both commands will return the emptystring..SH EXAMPLE.CSbutton .b \-fg [tk_chooseColor \-initialcolor gray \-title "Choose color"].CE.SH KEYWORDScolor selection dialog
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -