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

📄 finddialog.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.'\"'\" @(#) finddialog.n 1.21 94/12/17 16:04:44'/" .so man.macros.HS finddialog iwid.BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEfinddialog \- Create and manipulate a find dialog widget.SH SYNOPSIS\fBfinddialog\fI \fIpathName \fR?\fIoptions\fR?.SH "INHERITANCE"itk::Toplevel <- Shell <- Dialogshell <- Finddialog.SH "STANDARD OPTIONS".LP.nf.ta 4c 8c 12c\fBactiveBackground\fR	\fBactiveForeground\fR	\fBbackground\fR	\fBborderWidth\fR\fBcursor\fR	\fBdisabledForeground\fR	\fBfont\fR	\fBforeground\fR\fBhighlightColor\fR	\fBhighlightThickness\fR	\fBinsertBackground\fR	\fBinsertBorderWidth\fR\fBinsertOffTime\fR	\fBinsertOnTime\fR	\fBinsertWidth\fR	\fBselectBackground\fR\fBselectBorderWidth\fR	\fBselectColor\fR	\fBselectForeground\fR.fi.LPSee the "options" manual entry for details on the standard options..SH "ASSOCIATED OPTIONS".LP.nf.ta 4c 8c 12c\fBselectColor\fR.fi.LPSee the "checkbutton" widget manual entry for details on the aboveassociated options..LP.nf.ta 4c 8c 12c\fBselectColor\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..SH "INHERITED OPTIONS".LP.nf.ta 4c 8c 12c\fBbuttonBoxPadX\fR	\fBbuttonBoxPadY\fR 	\fBbuttonBoxPos\fR	\fBpadX\fR\fBpadY\fR	\fBseparator\fR	\fBthickness\fR.fi.LPSee the "dialogshell" widget  manual entry for details on the aboveinherited options..LP.nf.ta 4c 8c 12c\fBheight\fR	\fBmaster\fR	\fBmodality\fR	\fBwidth\fR.fi.LPSee the "shell" widget  manual entry for details on the aboveinherited options..LP.nf.ta 4c 8c 12c\fBtitle\fR .fi.LPSee the "Toplevel" widget  manual entry for details on the aboveinherited options..SH "WIDGET-SPECIFIC OPTIONS".LP.nfName:	\fBclearCommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-clearcommand\fR.fi.IPSpecifies a command to be invoked following a clear operation. The option is meant to be used as means of notification that theclear has taken place and allow other actions to take place suchas disabling a find again menu..LP.nfName:	\fBmatchCommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-matchcommand\fR.fi.IPSpecifies a command to be invoked following a find operation. The command is called with a match point as an argument which identifieswhere exactly where in the text or scrolledtext widget that the matchis located.  Should a match not be found the match point is {}.  Theoption is meant to be used as a means of notification that thefind operation has completed and allow other actions to take placesuch as disabling a find again menu option if the match point was {}..LP.nfName:	\fBpatternBackground\fRClass:	\fBBackground\fRCommand-Line Switch:	\fB-patternbackground\fR.fi.IPSpecifies the background color of the text matching the searchpattern.  It may have any of the forms accepted by Tk_GetColor.The default is gray44..LP.nfName:	\fBpatternForeground\fRClass:	\fBBackground\fRCommand-Line Switch:	\fB-patternforeground\fR.fi.IPSpecifies the foreground color of the text matching the searchpattern.  It may have any of the forms accepted by Tk_GetColor.The default is white..LP.nfName:	\fBsearchBackground\fRClass:	\fBBackground\fRCommand-Line Switch:	\fB-searchbackground\fR.fi.IPSpecifies the background color of the line containing the matching the search pattern.  It may have any of the forms accepted by Tk_GetColor.The default is gray77..LP.nfName:	\fBsearchForeground\fRClass:	\fBBackground\fRCommand-Line Switch:	\fB-searchforeground\fR.fi.IPSpecifies the foreground color of the line containing the matching the search pattern.  It may have any of the forms accepted by Tk_GetColor.The default is black..LP.nfName:	\fBtextWidget\fRClass:	\fBTextWidget\fRCommand-Line Switch:	\fB-textwidget\fR.fi.IPSpecifies the text or scrolledtext widget to be searched..BE.SH DESCRIPTION.PPThe \fBfinddialog\fR command creates a find dialog that works inconjunction with a text or scrolledtext widget to provide a meansof performing search operations.  The user is prompted for a text pattern to be found in the text or scrolledtext widget.  The search can be for all occurances, by regular expression, considerateof the case, or backwards..SH "METHODS".PPThe \fBfinddialog\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 finddialog widgets:.SH "INHERITED METHODS".LP.nf.ta 4c 8c 12c\fBadd\fR	\fBbuttonconfigure\fR	\fBdefault\fR	\fBhide\fR\fBinvoke\fR	\fBshow\fR	.fi.LPSee the "buttonbox" widget manual entry for details on the aboveinherited methods..LP.nf.ta 4c 8c 12c\fBactivate\fR	\fBcenter\fR	\fBdeactivate\fR.fi.LPSee the "shell" widget manual entry for details on the aboveinherited methods..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 \fBfinddialog\fRcommand..TP\fIpathName \fBclear\fRClears the pattern in the entry field and the pattern matchin indicators in the text or scrolledtext widget..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 \fBfinddialog\fRcommand..TP\fIpathName \fBfind\fRSearch for a specific text string in the text widget given bythe -textwidget option.  This method is the standard callbackfor the Find button.  It is made available such that it can be bound to a find again action..SH "COMPONENTS".LP.nfName:	\fBall\fRClass:	\fBCheckbutton\fR.fi.IPThe all component specifies that all the matches of the pattern should befound when performing the search.  See the "checkbutton" widget manual entry for details on the all component item..LP.nfName:	\fBbackwards\fRClass:	\fBCheckbutton\fR.fi.IPThe backwards component specifies that the search should continue ina backwards direction towards the beginning of the text or scrolledtextwidget.  See the "checkbutton" widget manual entry for details on the backwards component item..LP.nfName:	\fBcase\fRClass:	\fBCheckbutton\fR.fi.IPThe case component specifies that the case of the pattern should betaken into consideration when performing the search.  See the "checkbutton" widget manual entry for details on the case component item..LP.nfName:	\fBpattern\fRClass:	\fBEntryfield\fR.fi.IPThe pattern component provides the pattern entry field.  See the "entryfield" widget manual entry for details on the pattern component item..LP.nfName:	\fBregexp\fRClass:	\fBCheckbutton\fR.fi.IPThe regexp component specifies that the pattern is a regular expression.See the "checkbutton" widget manual entry for details on the regexp component item..fi.SH EXAMPLE.DS scrolledtext .st pack .st .st insert end "Now is the time for all good men\\n"  .st insert end "to come to the aid of their country" finddialog .fd -textwidget .st .fd center .st .fd activate.DE.SH AUTHORMark L. Ulferts.SH KEYWORDSfinddialog, dialogshell, shell, widget

⌨️ 快捷键说明

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