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

📄 checkbox.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.'\"'\" @(#) checkbox.n 1.21 94/12/17 16:04:44'/" .so man.macros.HS checkbox iwid.BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEcheckbox \- Create and manipulate a checkbox widget.SH SYNOPSIS\fBcheckbox\fI \fIpathName \fR?\fIoptions\fR?.SH "INHERITANCE"itk::Widget <- labeledframe <- checkbox.SH "STANDARD OPTIONS".LP.nf.ta 4c 8c 12c\fBbackground\fR	\fBborderWidth\fR	\fBcursor\fR	\fBdisabledForeground\fR\fBforeground\fR	\fBrelief\fR	\fBselectColor\fR.fi.LPSee the "options" manual entry for details on the standard options..SH "INHERITED OPTIONS".LP.nf.ta 4c 8c 12c\fBlabelBitmap\fR	\fBlabelFont\fR	\fBlabelImage\fR	\fBlabelMargin\fR\fBlabelPos\fR	\fBlabelText\fR	\fBlabelVariable\fR.fi.LPSee the "labeledframe" class manual entry for details on the inherited options..SH "WIDGET-SPECIFIC OPTIONS".LP.nfName:   \fBcommand\fRClass:  \fBCommand\fRCommand-Line Switch:    \fB-command\fR.fi.IPSpecifies a Tcl command procedure to be evaluated following a  change in the current check box selection..LP.nfName:   \fBorient\fRClass:  \fBOrient\fRCommand-Line Switch:    \fB-orient\fRDefault Value:  \fBvertical\fR.fi.IPSpecifies the orientation of the checkbuttons within the checkbox.  Validvalues are either "horizontal" or "vertical"..LP.BE.SH DESCRIPTION.PPThe \fBcheckbox\fR command creates a check button box widget capable of adding, inserting, deleting, selecting, and configuring checkbuttons as well as obtaining the currently selected button..SH "METHODS".PPThe \fBcheckbox\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 \fBcheckbox\fR take as one argument anindicator of which checkbutton of the checkbox to operate on.  These indicatorsare called \fIindexes\fR and allow reference and manipulation of checkbuttons.Checkbox indexes may be specified in any of the following forms:.TP 12\fInumber\fRSpecifies the checkbutton numerically, where 0 corresponds to the top checkbutton of the checkbox..TP 12\fBend\fRIndicates the last checkbutton of the checkbox..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 checkbutton in the checkbox, in order from top to bottom,until a matching entry is found.  The rules of \fBTcl_StringMatch\fRare used..SH "WIDGET-SPECIFIC METHODS".TP\fIpathName \fBadd\fR \fItag\fR ?\fIoption value option value\fR?Adds a new checkbutton to the checkbuttond window on the bottom.  The commandtakes additional options which are passed on to the checkbutton as constructionarguments.  These include the standard Tk checkbutton options.  The tag isreturned..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 checkbutton, whereas \fBconfigure\fRapplies to the options for the checkbox as a whole.\fIOptions\fR may have any of the values accepted by the \fBadd\fRwidget command.  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 \fBcheckbox\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 \fBcheckbox\fRcommand..TP\fIpathName \fBdelete\fR \fIindex\fRDeletes a specified checkbutton given an \fIindex\fR..TP\fIpathName \fBdeselect\fR \fIindex\fRDeselects a specified checkbutton given an \fIindex\fR..TP\fIpathName \fBflash\fR \fIindex\fRFlashes a specified checkbutton given an \fIindex\fR..TP\fIpathName \fBget\fR ?\fIindex\fR?Returns the tags of the currently selected checkbuttons or the selection status of specific checkbutton when given an index..TP\fIpathName \fBindex\fR \fIindex\fRReturns the numerical index corresponding to index..TP\fIpathName \fBinsert \fIindex\fR \fItag\fR ?\fIoption value option value ...\fR?Same as the \fBadd\fR command except that it inserts the newcheckbutton just before the one given by \fIindex\fR, instead of appendingto the end of the checkbox.  The \fIoption\fR, and \fIvalue\fRarguments have the same interpretation as for the \fBadd\fR widgetcommand.  .TP\fIpathName \fBselect\fR \fIindex\fRSelects a specified checkbutton given an \fIindex\fR..SH EXAMPLE.DS checkbox .cb -labeltext Styles .cb add bold -text Bold .cb add italic -text Italic .cb add underline -text Underline .cb select underline pack .cb -padx 10 -pady 10 -fill both -expand yes.DE.SH AUTHORJohn A. Tucker.SH KEYWORDScheckbox, widget

⌨️ 快捷键说明

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