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

📄 canvasprintbox.n

📁 这是一个Linux下的集成开发环境
💻 N
字号:
'\"'\" canvasprintbox (c) 1995 Tako Schotanus'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\"'/" .so man.macros.HS canvasprintbox iwid.BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEcanvasprintbox \- Create and manipulate a canvas print box widget.SH SYNOPSIS\fBcanvasprintbox\fI \fIpathName \fR?\fIoptions\fR?.SH "INHERITANCE"itk::Widget <- Canvasprintbox.SH "STANDARD OPTIONS".LP.nf.ta 4c 8c 12c\fBactiveBackground\fR	\fBbackground\fR	\fBborderWidth\fR	\fBcursor\fR\fBforeground\fR	\fBhighlightBackground\fR	\fBhighlightColor\fR	\fBhighlightThickness\fR\fBinsertBackground\fR	\fBinsertBorderWidth\fR	\fBinsertOffTime\fR	\fBinsertOnTime\fR\fBinsertWidth\fR	\fBrelief\fR	\fBrepeatDelay\fR	\fBrepeatInterval\fR\fBselectBackground\fR	\fBselectBorderWidth\fR	\fBselectForeground\fR.fi.LPSee the "options" manual entry for details on the standard options..SH "ASSOCIATED OPTIONS".IP.LP.SH "WIDGET-SPECIFIC OPTIONS".LP.nfName:	\fBfilename\fRClass:	\fBFileName\fRCommand-Line Switch:	\fB-filename\fR.fi.IPThe file to write the postscript output to (Only when outputis set to "file"). If posterizing is turned on and \fBhpagecnt\fRand/or \fBvpagecnt\fR is more than 1, x.y is appended to the filenamewhere x is the horizontal page number and y the vertical page number..LP.nfName:	\fBhpagecnt\fRClass:	\fBPageCnt\fRCommand-Line Switch:	\fB-hpagecnt\fR.fi.IPIs used in combination with \fBposterize\fR to determine overhow many pages the output should be distributed. Thisattribute specifies how many pages should be used horizontaly.Any change to this attribute will automatically update the "stamp".Defaults to 1..LP.nfName:	\fBorient\fRClass:	\fBOrient\fRCommand-Line Switch:	\fB-orient\fR.fi.IPDetermines the orientation of the output to the printer (or file).It can take the value "portrait" or "landscape" (default). Changesto this attribute will be reflected immediately in the "stamp".Defaults to "landscape" but will be changed automaticaly to the valuedeemed appropiate for the current canvas. Setting this attributewhen the canvasprintbox is first constructed (instead of using the"configure" method) will turn off the auto adjustment of this attribute..LP.nfName:	\fBoutput\fRClass:	\fBOutput\fRCommand-Line Switch:	\fB-output\fR.fi.IPSpecifies where the postscript output should go: to the printeror to a file. Can take on the values "printer" or "file".The corresponding entry-widget will reflect the contents ofeither the \fBprintcmd\fR attribute or the \fBfilename\fR attribute.Defaults to "printer"..LP.nfName:	\fBpageSize\fRClass:	\fBPageSize\fRCommand-Line Switch:	\fB-pagesize\fR.fi.IPThe pagesize the printer supports. Changes to this attributewill be reflected immediately in the "stamp".Defaults to "a4"..LP.nfName:	\fBposterize\fRClass:	\fBPosterize\fRCommand-Line Switch:	\fB-posterize\fR.fi.IPIndicates if posterizing is turned on or not. Posterizingthe output means that it is possible to distribute theoutput over more than one page. This way it is possible toprint a canvas/region which is larger than the specifiedpagesize without stretching. If used in combination withstretching it can be used to "blow up" the contents of acanvas to as large as size as you want (See attributes:hpagecnt and vpagecnt). Any change to this attribute willautomatically update the "stamp".Defaults to 0..LP.nfName:	\fBprintCmd\fRClass:	\fBPrintCmd\fRCommand-Line Switch:	\fB-printcmd\fR.fi.IPThe command to execute when printing the postscript output.The command will get the postscript directed to its standardinput (Only when output is set to "printer").Defaults to "lpr"..LP.nfName:	\fBprintRegion\fRClass:	\fBPrintRegion\fRCommand-Line Switch:	\fB-printregion\fR.fi.IPA list of four coordinates specifying which part of the canvas to print.An empty list means that the canvas' entire \fBscrollregion\fR should beprinted. Any change to this attribute will automatically update the "stamp".Defaults to an empty list..LP.nfName:	\fBstretch\fRClass:	\fBStretch\fRCommand-Line Switch:	\fB-stretch\fR.fi.IPDetermines if the output should be stretched to fill thepage (as defined by the attribute pagesize) as large aspossible. The aspect-ratio of the output will be retainedand the output will never fall outside of the boundariesof the page.Defaults to 0 but will be changed automaticaly to the valuedeemed appropiate for the current canvas. Setting this attributewhen the canvasprintbox is first constructed (instead of using the"configure" method) will turn off the auto adjustment of this attribute..LP.nfName:	\fBvPageCnt\fRClass:	\fBPageCnt\fRCommand-Line Switch:	\fB-vpagecnt\fR.fi.IPIs used in combination with "posterize" to determine overhow many pages the output should be distributed. Thisattribute specifies how many pages should be used verticaly.Any change to this attribute will automatically update the "stamp".Defaults to 1..LP.BE.SH DESCRIPTION.PPImplements a print box for printing the contents of a canvas widgetto a printer or a file. It is possible to specify page orientation, thenumber of pages to print the image on and if the output should bestretched to fit the page. Options exist to control the appearance andactions of the widget..SH "METHODS".PPThe \fBcanvasprintbox\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 canvasprintbox 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 \fBcanvasprintbox\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 \fBcanvasprintbox\fRcommand..TP\fIpathName\fR \fBgetoutput\fRReturns the value of the \fBprintercmd\fR or \fBfilename\fR optiondepending on the current setting of \fBoutput\fR..TP\fIpathName\fR \fBprint\fRPerfrom the actual printing of the canvas using the current settings ofall the attributes. Returns a boolean indicating wether the printing wassuccessful or not..TP\fIpathName\fR \fBrefresh\fRRetrieves the current value for all edit fields and updatesthe stamp accordingly. Is useful for Apply-buttons..TP\fIpathName\fR \fBsetcanvas\fR \fIcanvas\fRThis is used to set the \fIcanvas\fR that has to be printed.A stamp-sized copy will automatically be drawn to show how theoutput would look with the current settings..TP\fIpathName \fBstop\fRStops the drawing of the "stamp". I'm currently unable to detectwhen a Canvasprintbox gets destroyed or withdrawn. It's thereforeadvised that you perform a stop before you do something like that..SH "COMPONENTS".LP.nfName:	\fBprtflentry\fRClass:	\fBEntry\fR.fi.IPThe prtflentry component is the entry field for user input of the\fBfilename\fR or \fBprinter\fR command (depending on the value of\fBoutput\fR)..LP.nfName:	\fBhpcnt\fRClass:	\fBEntry\fR.fi.IPThe hpcnt component is the entry field for user input of the number ofpages to use horizontaly when \fBposterize\fR is turned on..fi.nfName:	\fBvpcnt\fRClass:	\fBEntry\fR.fi.IPThe vpcnt component is the entry field for user input of the number ofpages to use verticaly when \fBposterize\fR is turned on..fi.SH EXAMPLE.DScanvasprintbox .fsb -orient landscape -stretch 1pack .fsb -padx 10 -pady 10 -fill both -expand yes .DE.SH AUTHORTako Schotanus.LPTako.Schotanus@bouw.tno.nl.SH KEYWORDScanvasprintbox, widget

⌨️ 快捷键说明

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