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

📄 buttonbox.n

📁 这是一个Linux下的集成开发环境
💻 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.'\"'\" @(#) buttonbox.n 1.21 94/12/17 16:04:44'/" .so man.macros.HS buttonbox iwid.BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEbuttonbox \- Create and manipulate a manager widget for buttons.SH SYNOPSIS\fBbuttonbox\fI \fIpathName \fR?\fIoptions\fR?.SH "INHERITANCE"itk::Widget <- buttonbox.SH "STANDARD OPTIONS".LP.nf.ta 4c 8c 12c\fBbackground\fR	\fBcursor\fR.fi.LPSee the "options" manual entry for details on the standard options..SH "WIDGET-SPECIFIC OPTIONS".ta 4c 8c 12c.LP.nfName:	\fBorient\fRClass:	\fBOrient\fRCommand-Line Switch:	\fB-orient\fR.fi.IPOrientation of the button box: \fBhorizontal\fR or \fBvertical\fR.  The defaultis horizontal..LP.nfName:	\fBpadX\fRClass:	\fBPadX\fRCommand-Line Switch:	\fB-padx\fR.fi.IPSpecifies a non-negative padding distance to leave between the button group andthe outer edge of the button box in the x direction.  The value may be given in any of the forms acceptable to \fBTk_GetPixels\fR.  The default is 5 pixels..LP.nfName:	\fBpadY\fRClass:	\fBPadY\fRCommand-Line Switch:	\fB-pady\fR.fi.IPSpecifies a non-negative padding distance to leave between the button group andthe outer edge of the button box in the y direction.  The value may be given in any of the forms acceptable to \fBTk_GetPixels\fR.  The default is 5 pixels..LP.BE.SH DESCRIPTION.PPThe \fBbuttonbox\fR command creates a manager widget for controllingbuttons.  The button box also supports the display and invocationof a default button.  The button box can be configured either horizontallyor vertically.  .SH "METHODS".PPThe \fBbuttonbox\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. .PPMany of the widget commands for the buttonbox take as one argument anindicator of which button of the button box to operate on.  These indicators are called \fIindexes\fR and allow reference and manipulation of buttons regardless of their current map state.  buttonbox indexes may be specified in any of the following forms:.TP 12\fInumber\fRSpecifies the button numerically, where 0 corresponds to the left/top-most button of the button box. .TP 12\fBend\fRIndicates the right/bottom-most button of the button box..TP 12\fBdefault\fRIndicates the current default button of the button box.  This is thebutton with the default ring displayed..TP 12\fIpattern\fRIf the index doesn't satisfy one of the above forms then thisform is used.  \fIPattern\fR is pattern-matched against the tag ofeach button in the button box, in order from left/top to right/left,until a matching entry is found.  The rules of \fBTcl_StringMatch\fRare used..SH "WIDGET-SPECIFIC METHODS".TP\fIpathName \fBadd\fR \fItag\fR \fIargs\fRAdd a button distinguished by \fItag\fR to the end of the button box.If additional arguments are present they specify options to be appliedto the button.  See \fBPushButton\fR for information on the optionsavailable..TP\fIpathName \fBbuttonconfigure\fR \fIindex\fR ?\fIoptions\fR?This command is similar to the \fBconfigure\fR command, except thatit applies to the options for an individual button, whereas \fBconfigure\fR applies to the options for the button box as a whole.\fIOptions\fR may have any of the values accepted by the \fBPushButton\fRcommand.  If \fIoptions\fR are specified, options are modifiedas indicated in the command and the command returns an empty string.If no \fIoptions\fR are specified, returns a list describingthe current options for entry \fIindex\fR (see \fBTk_ConfigureInfo\fR forinformation on the format of this list)..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 \fBbuttonbox\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 \fBbuttonbox\fRcommand..TP\fIpathName \fBdefault\fR \fIindex\fRSets the default button to the button given by \fIindex\fR.  This causesthe default ring to appear arround the specified button..TP\fIpathName \fBdelete\fR \fIindex\fRDeletes the button given by \fIindex\fR from the button box..TP\fIpathName \fBhide\fR \fIindex\fRHides the button denoted by \fIindex\fR.  This doesn't remove the button permanently, just inhibits its display.  .TP\fIpathName \fBindex \fIindex\fRReturns the numerical index corresponding to \fIindex\fR..TP\fIpathName \fBinsert \fIindex\fR \fItag\fR ?\fIoption value option value ...\fR?Same as the \fBadd\fR command except that it inserts the newbutton just before the one given by \fIindex\fR, instead of appendingto the end of the button box.  The \fIoption\fR, and \fIvalue\fRarguments have the same interpretation as for the \fBadd\fR widgetcommand.  .TP\fIpathName \fBinvoke\fR \fI?index?\fRInvoke the command associated with a button.  If no argumentsare given then the current default button is invoked, otherwise the argumentis expected to be a button \fIindex\fR..TP\fIpathName \fBshow\fR \fIindex\fRDisplay a previously hidden button denoted by \fIindex\fR..SH EXAMPLE.DS buttonbox .bb .bb add Yes -text Yes -command "puts Yes"  .bb add No -text No -command "puts No" .bb add Maybe -text Maybe -command "puts Maybe" .bb default Yes pack .bb -expand yes -fill both.DE.SH AUTHORBret A. Schuhmacher.DEMark L. Ulferts.SH KEYWORDSbuttonbox, pushbutton, button, widget

⌨️ 快捷键说明

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