📄 labeledframe.n
字号:
'\"'\" Copyright (c) 1997 DSC Technologies Corporation'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\"'\" @(#) labeledframe.n 1.21 97/1/30 16:04:44'/" .so man.macros.HS labeledframe iwid.BS'\" Note: do not modify the .SH NAME line immediately below!.SH NAMElabeledframe \- Create and manipulate a labeled frame widget.SH SYNOPSIS\fBlabeledframe\fI \fIpathName \fR?\fIoptions\fR?.SH "INHERITANCE"itk::Archetype <- labeledframe.SH "STANDARD OPTIONS".LP.nf.ta 4c 8c 12c\fBbackground\fR \fBborderwidth\fR \fBcursor\fR\fBforeground\fR \fBrelief\fR.fi.LPSee the "options" manual entry for details on the standard options..SH "WIDGET-SPECIFIC OPTIONS".LP.nfName: \fBiPadX\fRClass: \fBIPad\fRCommand-Line Switch: \fB-ipadx\fR.fi.IPSpecifies horizontal padding space between the border and the childsite.The value may have any of the forms acceptable to \fBTk_GetPixels\fR.The default is 0..LP.nfName: \fBiPadY\fRClass: \fBIPad\fRCommand-Line Switch: \fB-ipady\fR.fi.IPSpecifies vertical padding space between the border and the childsite.The value may have any of the forms acceptable to \fBTk_GetPixels\fR.The default is 0..LP.nfName: \fBlabelBitmap\fRClass: \fBBitmap\fRCommand-Line Switch: \fB-labelbitmap\fR.fi.IPSpecifies a bitmap to display in the label, in any of the forms acceptable to \fBTk_GetBitmap\fR. This option overrides the \fIlabeltext\fRoption..LP.nfName: \fBlabelImage\fRClass: \fBImage\fRCommand-Line Switch: \fB-labelimage\fR.fi.IPSpecifies a image to be used as the label. The image may be any of thevalues created by the \fBimage create\fR command. This option overridesboth the \fIlabelbitmap\fR and \fIlabeletext\fR options..LP.nfName: \fBlabelMargin\fRClass: \fBMargin\fRCommand-Line Switch: \fB-labelmargin\fR.fi.IPSpecifies the distance between the inner ede of the hull frames relief,and the label in any of the forms acceptable to \fBTk_GetPixels\fR. The default is 10 pixels..LP.nfName: \fBlabelText\fRClass: \fBText\fRCommand-Line Switch: \fB-labeltext\fR.fi.IPSpecifies the text of the label around the childsite..LP.nfName: \fBlabelVariable\fRClass: \fBVariable\fRCommand-Line Switch: \fB-labelvariable\fR.fi.IPSpecifies the text variable of the label around the childsite..LP.nfName: \fBlabelFont\fRClass: \fBFont\fRCommand-Line Switch: \fB-labelfont\fR.fi.IPSpecifies the font of the label around the childsite..LP.nfName: \fBlabelPos\fRClass: \fBPosition\fRCommand-Line Switch: \fB-labelpos\fR.fi.IPSpecifies the position of the label within the grooved relief of the hull widget.\fB ne, n, nw, se, s, sw, en, e, es, wn, w, ws\fR Default is \fBn\fR..LP.BE.SH DESCRIPTION.PPThe \fBlabeledframe\fR command creates a hull frame with agrooved relief, a label positioned within the grooved relief ofthe hull frame, and a frame childsite. The frame childsite can filled with anywidget via a derived class or though the use of the childsite method.This class was designed to be a general purpose base class for supporting the combination of labeled frame and a childsite. The options include theability to position the label at configurable locations within thegrooved relief of the hull frame, and control the display of the label..SH "METHODS".PPThe \fBlabeledframe\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 labeledframe widgets:.SH "WIDGET-SPECIFIC METHODS".TP\fIpathName \fBchildsite\fRReturn the path name of the child site..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 \fBlabeledframe\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 \fBlabeledframe\fRcommand..SH "COMPONENTS".LP.nfName: \fBlabel\fRClass: \fBlabel\fR.fi.IPThe label component provides the label for the labeled widget. See the "label" widget manual entry for details on the label component item..fi.LP.SH EXAMPLE.IPThe labeledframe was primarily meant to be a base class. TheRadiobox is a good example of a derived classe of the labeledframe class.In order to provide equal support for composite classes, the 'childsite' methodsalso exists. The following is an example of 'childsite' method usage..LP.DS labeledframe .lw -labeltext "Entry Frame" -labelpos n pack .lw -fill both -expand yes -padx 10 -pady 10 set cs [.lw childsite] pack [Entryfield $cs.entry1 -labeltext "Name:"] -side top -fill x pack [Spinint $cs.entry2 -labeltext "Number:"] -side top -fill x pack [Pushbutton $cs.entry3 -text "Details:"] -side top -fill x.DE.SH AUTHORJohn A. Tucker.SH KEYWORDSlabeledframe, widget
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -