chooseColor.n
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:2k
- '"
- '" 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.
- '"
- '" RCS: @(#) $Id: chooseColor.n,v 1.3 2002/10/02 21:12:41 hobbs Exp $
- '"
- .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 NAME
- tk_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
- .PP
- The procedure fBtk_chooseColorfR pops up a dialog box for the
- user to select a color. The following fIoption-valuefR pairs are
- possible as command line arguments:
- .TP
- fB-initialcolorfR fIcolorfR
- Specifies the color to display in the color dialog when it pops
- up. fIcolorfR must be in a form acceptable to the fBTk_GetColorfR
- function.
- .TP
- fB-parentfR fIwindowfR
- Makes fIwindowfR the logical parent of the color dialog. The color
- dialog is displayed on top of its parent window.
- .TP
- fB-titlefR fItitleStringfR
- Specifies a string to display as the title of the dialog box. If this
- option is not specified, then a default title will be displayed.
- .LP
- If the user selects a color, fBtk_chooseColorfR will return the
- name of the color in a form acceptable to fBTk_GetColorfR. If the
- user cancels the operation, both commands will return the empty
- string.
- .SH EXAMPLE
- .CS
- button .b -bg [tk_chooseColor -initialcolor gray -title "Choose color"]
- .CE
- .SH KEYWORDS
- color selection dialog