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

📄 fileselectionbox.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.'\"'\" @(#) fileselectionbox.n 1.21 94/12/17 16:04:44'/" .so man.macros.HS fileselectionbox iwid.BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEfileselectionbox \- Create and manipulate a file selection box widget.SH SYNOPSIS\fBfileselectionbox\fI \fIpathName \fR?\fIoptions\fR?.SH "INHERITANCE"itk::Widget <- Fileselectionbox.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\fBtextBackground\fR	\fBtextFont\fR.fi.LPSee the "entryfield" 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\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 selection box: \fBn\fR, \fBs\fR, \fBe\fR, \fBw\fR, \fBtop\fR, \fBbottom\fR, or \fBcenter\fR.  The default is s..fi.IPSpecifies a Tcl command procedure which is called when an file list item isdouble clicked.  Typically this occurs when mouse button 1 is double clicked over a file name..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 entry widget.  .LP.nfName:	\fBfilterLabel\fRClass:	\fBText\fRCommand-Line Switch:	\fB-filterlabel\fR.fi.IPSpecifies the text of the label for the filter entry field.  The default is"Filter"..LP.nfName:	\fBfilterOn\fRClass:	\fBFilterOn\fRCommand-Line Switch:	\fB-filteron\fR.fi.IPSpecifies whether or not to display the filter entry.  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 360 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 entry widget.  .LP.nfName:	\fBselectionLabel\fRClass:	\fBText\fRCommand-Line Switch:	\fB-selectionlabel\fR.fi.IPSpecifies the text of the label for the selection entry field.  The defaultis "Selection"..LP.nfName:	\fBselectionOn\fRClass:	\fBSelectionOn\fRCommand-Line Switch:	\fB-selectionon\fR.fi.IPSpecifies whether or not to display the selection entry.  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 470 pixels..LP.BE.SH DESCRIPTION.PPThe \fBfileselectionbox\fR command creates a file selection box similar to the OSF/Motif standard Xmfileselectionbox composite widget.  The fileselectionbox is composed of directory and file scrolled lists as well as filter and selection entry fields.  Bindings are in place such thatselection of a directory list item loads the filter entry field andselection of a file list item loads the selection entry field.  Optionsexist to control the appearance and actions of the widget..SH "METHODS".PPThe \fBfileselectionbox\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 fileselectionbox 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 \fBfileselectionbox\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 \fBfileselectionbox\fRcommand..TP\fIpathName \fBfilter\fRUpdate the current contents of the file selection box based on the currentfilter entry field value..TP\fIpathName \fBget\fRReturns the current value of the selection entry widget..SH "COMPONENTS".LP.nfName:	\fBdirs\fRClass:	\fBScrolledlistbox\fR.fi.IPThe dirs component is the directory list box for the file selection 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 file selection box.See the "scrolledlistbox" widget manual entry for details on the filescomponent item..LP.nfName:	\fBfilter\fRClass:	\fBEntryfield\fR.fi.IPThe filter component is the entry field for user input of the filter value.See the "entryfield" widget manual entry for details on the filter component item..LP.nfName:	\fBselection\fRClass:	\fBEntryfield\fR.fi.IPThe selection component is the entry field for user input of the currentlyselected file value.  See the "entryfield" widget manual entry for details on the selection component item..fi.SH EXAMPLE.DSfileselectionbox .fsbpack .fsb -padx 10 -pady 10 -fill both -expand yes .DE.SH AUTHOR(S)Mark L. Ulferts.SH KEYWORDSfileselectionbox, widget

⌨️ 快捷键说明

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