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

📄 tabset.n

📁 linux 下的源代码分析阅读器 red hat公司新版
💻 N
📖 第 1 页 / 共 2 页
字号:
'\"'\" 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.'\"'\" @(#) WIDGET.n'/".so man.macros.HS tabset iwid.BS'\" Note:  do not modify the .SH NAME line immediately below!'\"'\".SH NAMEtabset \- create and manipulate tabs as as set.SH SYNOPSIS\fBtabset\fR \fIpathName\fR ?\fIoptions\fR?.SH "INHERITANCE"itk::Widget <- tabset.SH "STANDARD OPTIONS".LP.nf.ta 4c 8c 12c\fBbackground\fR	\fBfont\fR	\fBselectBackground\fR	\fBcursor\fR\fBforeground\fR	\fBselectForeground\fR	\fBdisabledForeground\fR	\fBheight\fR\fBwidth\fR.fi.LPSee the "options" manual entry for details on the standard options..SH "WIDGET-SPECIFIC OPTIONS".LP.nfName:	\fBangle\fRClass:	\fBAngle\fRCommand-Line Switch:	\fB-angle\fR.fi.IPSpecifes the angle of slope from the inner edge to the outer edge of the tab. An angle of 0 specifies square tabs. Valid ranges are 0 to 45 degrees inclusive. Default is 15 degrees. If tabPos is e or w, this option is ignored..LP.nfName:	\fBbackdrop\fRClass:	\fBBackdrop\fRCommand-Line Switch:	\fB-backdrop\fR.fi.IPSpecifies a background color to use when filling in the area behind the tabs..LP.nfName:	\fBbevelAmount\fRClass:	\fBBevelAmount\fRCommand-Line Switch:	\fB-bevelamount\fR.fi.IPSpecifes the size of tab corners. A value of 0 with angle set to 0 results in square tabs. A \fBbevelAmount\fR of 4, means that the tab will be drawn with angled corners that cut in 4 pixels from the edge of the tab. The default is 0..LP.nfName:	\fBcommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-command\fRSpecifes the prefix of a Tcl command to invoke to change the view in the widget associated with the tabset. When a user selects a tab, a Tcl command is invoked. The actual command consists of this option followed by a space and a number. The number is the numerical index of the tab that has been selected..LP.nfName:	\fBequalTabs\fRClass:	\fBEqualTabs\fRCommand-Line Switch:	\fB-equaltabs\fR.fi.IPSpecifies whether to force tabs to be equal sized or not. A value of \fBtrue\fR means constrain tabs to be equal sized. A value of \fBfalse\fR allows each tab to size based on the text label size. The value may have any of the forms accepted by the \fBTcl_GetBoolean\fR, such as \fBtrue\fR, \fBfalse\fR, \fB0\fR, \fB1\fR, \fByes\fR, or \fBno\fR..IPFor horizontally positioned tabs (\fBtabPos\fR is either \fBs\fR or \fBn\fR), \fBtrue\fR forces all tabs to be equal width (the width being equal to the longest label plus any padX specified). Horizontal tabs are always equal in height. .IPFor vertically positioned tabs (\fBtabPos\fR is either \fBw\fR or \fBe\fR), \fBtrue\fR forces all tabs to be equal height (the height being equal to the height of the label with the largest font). Vertically oriented tabs are always equal in width..LP.nfName:	\fBgap\fRClass:	\fBGap\fRCommand-Line Switch:	\fB-gap\fR.fi.IPSpecifies the amount of pixel space to place between each tab. Value may be any pixel offset value. In addition, a special keyword \fBoverlap\fR can be used as the value to achieve a standard overlap of tabs. This value may have any of the forms acceptable to \fBTk_GetPixels\fR..LP.nfName:	\fBmargin\fRClass:	\fBMargin\fRCommand-Line Switch:	\fB-margin\fR.fi.IPSpecifies the amount of space to place between the outside edge of the tabset and the outside edge of its tabs. If \fBtabPos\fR is \fBs\fR, this is the amount of space between the bottom edge of the tabset and the bottom edge of the set of tabs. If \fBtabPos\fR is \fBn\fR, this is the amount of space between the top edge of the tabset and the top edge of the set of tabs. If \fBtabPos\fR is \fBe\fR, this is the amount of space between the right edge of the tabset and the right edge of the set of tabs. If \fBtabPos\fR is \fBw\fR, this is the amount of space between the left edge of the tabset and the left edge of the set of tabs. This value may have any of the forms acceptable to \fBTk_GetPixels\fR..LP.nfName:	\fBpadX\fRClass:	\fBPadX\fRCommand-Line Switch:	\fB-padx\fR.fi.IPSpecifies a non-negative value indicating how much extra space to request for a tab around its label in the X-direction. When computing how large a window it needs, the tab will add this amount to the width it would normally need The tab will end up with extra internal space to the left and right of its text label. This value may have any of the forms acceptable to \fBTk_GetPixels\fR..LP.nfName:	\fBpadY\fRClass:	\fBPadY\fRCommand-Line Switch:	\fB-pady\fR.fi.IPSpecifies a non-negative value indicating how much extra space to request for a tab around its label in the Y-direction. When computing how large a window it needs, the tab will add this amount to the height it would normally need The tab will end up with extra internal space to the top and bottom of its text label. This value may have any of the forms acceptable to \fBTk_GetPixels\fR..LP.nfName:	\fBraiseSelect\fRClass:	\fBRaiseSelect\fRCommand-Line Switch:	\fB-raiseselect\fR.fi.IPSpecifes whether to slightly raise the selected tab from the rest of the tabs. The selected tab is drawn 2 pixels closer to the outside edge of the tabset than the unselected tabs. A value of true says to raise selected tabs, a value of false turns this off. The default is false. The value may have any of the forms accepted by the \fBTcl_GetBoolean\fR, such as \fBtrue\fR, \fBfalse\fR, \fB0\fR, \fB1\fR, \fByes\fR, or \fBno\fR..LP.nfName:	\fBstart\fRClass:	\fBStart\fRCommand-Line Switch:	\fB-start\fR.fi.IPSpecifies the amount of space to place between the left or top edge of the tabset and the starting edge of its tabs. For horizontally positioned tabs, this is the amount of space between the left edge of the tabset and the left edge of the first tab. For vertically positioned tabs, this is the amount of space between the top of the tabset and the top of the first tab. This value may change if the user performs a MButton-2 scroll on the tabs. This value may have any of the forms acceptable to \fBTk_GetPixels\fR..LP.nfName:	\fBstate\fRClass:	\fBState\fRCommand-Line Switch:	\fB-state\fR.fi.IPSets the active state of the tabset. Specifying \fBnormal\fR allows all tabs to be selectable. Specifying \fBdisabled\fR disables the tabset causing all tabs to be drawn in the disabledForeground color..LP.nfName:	\fBtabBorders\fRClass:	\fBTabBorders\fRCommand-Line Switch:	\fB-tabborders\fR.fi.IPSpecifies whether to draw the borders of tabs that are not selected. Specifying true (the default) draws these borders, specifying false draws only the border around the selected tab. The value may have any of the forms accepted by the \fBTcl_GetBoolean\fR, such as \fBtrue\fR, \fBfalse,\fR \fB0\fR, \fB1\fR, \fByes\fR, or \fBno\fR..LP.nfName:	\fBtabPos\fRClass:	\fBTabPos\fRCommand-Line Switch:	\fB-tabpos\fR.fi.IPSpecifies the location of the set of tabs in relation to another widget. Must be \fBn\fR, \fBs\fR, \fBe\fR, or \fBw\fR. Defaults to \fBs\fR. North tabs open downward, South tabs open upward. West tabs open to the right, east tabs open to the left..BE.SH DESCRIPTION.PPThe \fBtabset\fR command creates a new window (given by the pathName argument) and makes it into a \fBtabset\fR widget. Additional \fIoptions\fR, described above may be specified on the command line or in the option database to configure aspects of the tabset such as its colors, font, and text. The \fBtabset\fR command returns its \fIpathName\fR argument. At the time this command is invoked, there must not exist a window named \fIpathName\fR, but pathName's parent must exist..PPA \fBtabset\fR is a widget that contains a set of Tab buttons. It displays these tabs in a row or column depending on it tabpos. When a tab is clicked on, it becomes the only tab in the tab set that is selected. All other tabs are deselected. The Tcl command prefix associated with this tab (through the command tab configure option) is invoked with the tab index number appended to its argument list. This allows the tabset to control another widget such as a Notebook..SH TABSTabs are drawn to appear attached to another widget. The tabset draws an edge boundary along one of its edges. This edge is known as the attachment edge. This edge location is dependent on the value of \fBtabPos\fR. For example, if \fBtabPos\fR is \fBs\fR, the attachment edge wil be on the top side of the tabset (in order to attach to the bottom or south side of its attached widget). The selected tab is draw with a 3d relief to appear above the other tabs. This selected tab "opens" toward attachment edge. .PP

⌨️ 快捷键说明

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