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

📄 extfileselectionbox.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.'\"'\" @(#) extfileselectionbox.n 1.21 94/12/17 16:04:44'/" .so man.macros.HS extfileselectionbox iwid.BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEextfileselectionbox \- Create and manipulate a file selection box widget.SH SYNOPSIS\fBextfileselectionbox\fI \fIpathName \fR?\fIoptions\fR?.SH "INHERITANCE"itk::Widget <- Extfileselectionbox.SH "STANDARD OPTIONS".LP.nf.ta 4c 8c 12c\fBactiveBackground\fR	\fBbackground\fR	\fBborderWidth\fR	\fBcursor\fR\fBforeground\fR	\fBhighlightColor\fR	\fBhighlightThickness\fR	\fBinsertBackground\fR\fBinsertBorderWidth\fR	\fBinsertOffTime\fR	\fBinsertOnTime\fR	\fBinsertWidth\fR\fBselectBackground\fR	\fBselectBorderWidth\fR	\fBselectForeground\fR.fi.LPSee the "options" manual entry for details on the standard options..SH "ASSOCIATED OPTIONS".LP.nf.ta 4c 8c 12c\fBpopupCursor\fR	\fBtextBackground\fR	\fBtextFont\fR.fi.LPSee the "combobox" widget manual entry for details on the aboveassociated options..LP.nf.ta 4c 8c 12c\fBlabelFont\fR.fi.LPSee the "labeledwidget" widget manual entry for details on the aboveassociated options..LP.nf.ta 4c 8c 12c\fBsashCursor\fR.fi.LPSee the "panedwindow" widget manual entry for details on the aboveassociated options..LP.nf.ta 4c 8c 12c\fBactiveRelief\fR	\fBelementBorderWidth\fR	\fBjump\fR	\fBtroughColor\fR.fi.LPSee the "scrollbar" widget class manual entry for details on the aboveassociated options..LP.nf.ta 4c 8c 12c\fBtextBackground\fR	\fBtextFont\fR.fi.LPSee the "scrolledlistbox" widget manual entry for details on the aboveassociated options..SH "WIDGET-SPECIFIC OPTIONS".LP.nfName:	\fBchildSitePos\fRClass:	\fBPosition\fRCommand-Line Switch:	\fB-childsitepos\fR.fi.IPSpecifies the position of the child site in the extended fileselection box: \fBn\fR, \fBs\fR, \fBe\fR, \fBw\fR, \fBtop\fR, or \fBbottom\fR.  The default is s..LP.nfName:	\fBdirectory\fRClass:	\fBDirectory\fRCommand-Line Switch:	\fB-directory\fR.fi.IPSpecifies the initial default directory.  The default is the present working directory..LP.nfName:	\fBdirSearchCommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-dirsearchcommand\fR.fi.IPSpecifies a Tcl command to be executed to perform a directory search.The command will receive the current working directory and filtermask as arguments.  The command should return a list of files whichwill be placed into the directory list..LP.nfName:	\fBdirsLabel\fRClass:	\fBText\fRCommand-Line Switch:	\fB-dirslabel\fR.fi.IPSpecifies the text of the label for the directory list.  The default is"Directories"..LP.nfName:	\fBdirsOn\fRClass:	\fBDirsOn\fRCommand-Line Switch:	\fB-dirson\fR.fi.IPSpecifies whether or not to display the directory list.  Thevalue may be given in any of the forms acceptable to \fBTcl_GetBoolean\fR.The default is true..LP.nfName:	\fBfileSearchCommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-filesearchcommand\fR.fi.IPSpecifies a Tcl command to be executed to perform a file search.The command will receive the current working directory and filtermask as arguments.  The command should return a list of files whichwill be placed into the file list..LP.nfName:	\fBfilesLabel\fRClass:	\fBText\fRCommand-Line Switch:	\fB-fileslabel\fR.fi.IPSpecifies the text of the label for the files list.  The default is "Files"..LP.nfName:	\fBfilesOn\fRClass:	\fBFilesOn\fRCommand-Line Switch:	\fB-fileson\fR.fi.IPSpecifies whether or not to display the files list.  Thevalue may be given in any of the forms acceptable to \fBTcl_GetBoolean\fR.The default is true..LP.nfName:	\fBfileType\fRClass:	\fBFileType\fRCommand-Line Switch:	\fB-filetype\fR.fi.IPSpecify the type of files which may appear in the file list: \fBregular\fR,\fBdirectory\fR, or \fBany\fR.  The default is regular..LP.nfName:	\fBfilterCommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-filtercommand\fR.fi.IPSpecifies a Tcl command to be executed upon hitting the Return keyin the filter combobox widget.  .LP.nfName:	\fBfilterLabel\fRClass:	\fBText\fRCommand-Line Switch:	\fB-filterlabel\fR.fi.IPSpecifies the text of the label for the filter combobox.  The default is"Filter"..LP.nfName:	\fBfilterOn\fRClass:	\fBFilterOn\fRCommand-Line Switch:	\fB-filteron\fR.fi.IPSpecifies whether or not to display the filter combobox.  Thevalue may be given in any of the forms acceptable to \fBTcl_GetBoolean\fR.The default is true..LP.nfName:	\fBheight\fRClass:	\fBHeight\fRCommand-Line Switch:	\fB-height\fR.fi.IPSpecifies the height of the selection box.  The value may be specified in any of the forms acceptable to Tk_GetPixels.  The default is 300 pixels..LP.nfName:	\fBinvalid\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-invalid\fR.fi.IPCommand to be executed should the filter contents be proven invalid.  The default is {bell}..LP.nfName:	\fBmask\fRClass:	\fBMask\fRCommand-Line Switch:	\fB-mask\fR.fi.IPSpecifies the initial file mask string.  The default is "*"..LP.nfName:	\fBnoMatchString\fRClass:	\fBNoMatchString\fRCommand-Line Switch:	\fB-nomatchstring\fR.fi.IPSpecifies the string to be displayed in the files list should no filesmatch the mask.  The default is ""..LP.nfName:	\fBselectDirCommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-selectdirommand\fR.fi.IPSpecifies a Tcl command to be executed following selection of a directory in the directory list..LP.nfName:	\fBselectFileCommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-selectfileommand\fR.fi.IPSpecifies a Tcl command to be executed following selection of a file in the files list..LP.nfName:	\fBselectionCommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-selectioncommand\fR.fi.IPSpecifies a Tcl command to be executed upon hitting the Return keyin the selection combobox widget.  .LP.nfName:	\fBselectionLabel\fRClass:	\fBText\fRCommand-Line Switch:	\fB-selectionlabel\fR.fi.IPSpecifies the text of the label for the selection combobox.  The defaultis "Selection"..LP.nfName:	\fBselectionOn\fRClass:	\fBSelectionOn\fRCommand-Line Switch:	\fB-selectionon\fR.fi.IPSpecifies whether or not to display the selection combobox.  Thevalue may be given in any of the forms acceptable to \fBTcl_GetBoolean\fR.The default is true..LP.nfName:	\fBwidth\fRClass:	\fBWidth\fRCommand-Line Switch:	\fB-width\fR.fi.IPSpecifies the width of the selection box.  The value may be specified in any of the forms acceptable to Tk_GetPixels.  The default is 350 pixels..LP.BE.SH DESCRIPTION.PPThe \fBextfileselectionbox\fR command creates an extended file selection box which is slightly different than the fileselectionbox widget.The differences are mostly cosmetic in that the listboxes are within a panedwindow and the entryfields for the filter and selectionhave been replaced by comboboxes.  Other than that the interface ispractically the same..SH "METHODS".PPThe \fBextfileselectionbox\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 extfileselectionbox widgets:.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 \fBextfileselectionbox\fRcommand..TP\fIpathName \fBchildsite\fRReturns the child site widget path name..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 \fBextfileselectionbox\fRcommand..TP\fIpathName \fBfilter\fRUpdate the current contents of the extended file selection box based on the current filter combobox value..TP\fIpathName \fBget\fRReturns the current value of the selection combobox widget..SH "COMPONENTS".LP.nfName:	\fBdirs\fRClass:	\fBScrolledlistbox\fR.fi.IPThe dirs component is the directory list box for the extended fileselection box. See the "scrolledlistbox" widget manual entry for details on the dirs component item..LP.nfName:	\fBfiles\fRClass:	\fBScrolledlistbox\fR.fi.IPThe files component is the file list box for the extended fileselection box.See the "scrolledlistbox" widget manual entry for details on the filescomponent item..LP.nfName:	\fBfilter\fRClass:	\fBCombobox\fR.fi.IPThe filter component is the field for user input of the filter value.See the "combobox" widget manual entry for details on the filter component item..LP.nfName:	\fBselection\fRClass:	\fBCombobox\fR.fi.IPThe selection component is the field for user input of the currentlyselected file value.  See the "combobox" widget manual entry for details on the selection component item..fi.SH EXAMPLE.DSextfileselectionbox .fsbpack .fsb -padx 10 -pady 10 -fill both -expand yes .DE.SH AUTHOR(S)Mark L. Ulferts.DEAnthony Parent.SH KEYWORDSextfileselectionbox, widget

⌨️ 快捷键说明

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