⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pushbutton.n

📁 linux 下的源代码分析阅读器 red hat公司新版
💻 N
字号:
'\"'\" Copyright (c) 1995 DSC Technologies Corporation'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\"'\" @(#) pushbutton.n 1.21 94/12/17 16:04:44'/" .so man.macros.HS pushbutton iwid.BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEpushbutton \- Create and manipulate a push button widget.SH SYNOPSIS\fBpushbutton\fI \fIpathName \fR?\fIoptions\fR?.SH "INHERITANCE"itk::Widget <- pushbutton.SH "STANDARD OPTIONS".LP.nf.ta 4c 8c 12c\fBactiveBackground\fR	\fBactiveForeground\fR	\fBbackground\fR	\fBbitmap\fR\fBborderWidth\fR	\fBcommand\fR	\fBcursor\fR	\fBdisabledForeground\fR\fBfont\fR	\fBforeground\fR	\fBhighlightBackground\fR	\fBhighlightColor\fR\fBhighlightThickness\fR	\fBimage\fR	\fBpadX\fR	\fBpadY\fR\fBstate\fR	\fBtext\fR	\fBunderline\fR	\fBwrapLength\fR.fi.LPSee the "options" manual entry for details on the standard options..SH "WIDGET-SPECIFIC OPTIONS".LP.nfName:	\fBdefaultRing\fRClass:	\fBDefaultRing\fRCommand-Line Switch:	\fB-defaultring\fR.fi.IPBoolean describing whether the button displays its default ring given in any of the forms acceptable to \fBTcl_GetBoolean\fR.  The default is false..LP.nfName:	\fBdefaultRingPad\fRClass:	\fBPad\fRCommand-Line Switch:	\fB-defaultringpad\fR.fi.IP Specifies the amount of space to be allocated to the indentation of thedefault ring ring given in any of the forms acceptable to \fBTcl_GetPixels\fR.The option has no effect if the defaultring option is set to false.  The default is 2 pixels..LP.nfName:	\fBheight\fRClass:	\fBHeight\fRCommand-Line Switch:	\fB-height\fR.fi.IPSpecifies the height of the button inclusive of any default ring given inany of the forms acceptable to \fBTk_GetPixels\fR.  A value of zero lets the push button determine the height based on the requested height plus highlightring and defaultringpad..LP.nfName:	\fBwidth\fRClass:	\fBWidth\fRCommand-Line Switch:	\fB-width\fR.fi.IPSpecifies the width of the button inclusive of any default ring given inany of the forms acceptable to \fBTk_GetPixels\fR.  A value of zero lets the push button determine the width based on the requested width plus highlightring and defaultringpad..LP.BE.SH DESCRIPTION.PPThe \fBpushbutton\fR command creates a push button with an optional default ring used for default designation and traversal..SH "METHODS".PPThe \fBpushbutton\fR command creates a new Tcl command whosename is \fIpathName\fR.  Thiscommand may be used to invoke variousoperations on the widget.  It has the following general form:.DS C\fIpathName option \fR?\fIarg arg ...\fR?.DE\fIOption\fR and the \fIarg\fRsdetermine the exact behavior of the command.  The followingcommands are possible for pushbutton widgets:.SH "ASSOCIATED METHODS".LP.nf.ta 4c 8c 12c\fBflash\fR	\fBinvoke\fR.fi.LPSee the "button" manual entry for details on the associated methods..SH "WIDGET-SPECIFIC METHODS".TP\fIpathName \fBcget\fR \fIoption\fRReturns the current value of the configuration option givenby \fIoption\fR.\fIOption\fR may have any of the values accepted by the \fBpushbutton\fRcommand..TP\fIpathName\fR \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?Query or modify the configuration options of the widget.If no \fIoption\fR is specified, returns a list describing all ofthe available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR forinformation on the format of this list).  If \fIoption\fR is specifiedwith no \fIvalue\fR, then the command returns a list describing theone named option (this list will be identical to the correspondingsublist of the value returned if no \fIoption\fR is specified).  Ifone or more \fIoption\-value\fR pairs are specified, then the commandmodifies the given widget option(s) to have the given value(s);  inthis case the command returns an empty string.\fIOption\fR may have any of the values accepted by the \fBpushbutton\fRcommand..SH "COMPONENTS".LP.nfName:	\fBpushbutton\fRClass:	\fBButton\fR.fi.IPThe pushbutton component is the button surrounded by the optional default ring.See the "button" widget manual entry for details on the pushbuttoncomponent item..fi.SH EXAMPLE.DSpushbutton .pb -text "Hello" -command {puts "Hello World"} -defaultring 1pack .pb -padx 10 -pady 10.DE.SH AUTHORBret A. Schuhmacher.DEMark L. Ulferts.SH KEYWORDSpushbutton, widget

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -