1 |
578 |
markom |
'\"
|
2 |
|
|
'\" canvasprintdialog (c) 1995 Mark L. Ulferts
|
3 |
|
|
'\"
|
4 |
|
|
'\" See the file "license.terms" for information on usage and redistribution
|
5 |
|
|
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
6 |
|
|
'\"
|
7 |
|
|
'\" @(#) canvasprintdialog.n 1.21 94/12/17 16:04:44
|
8 |
|
|
'/"
|
9 |
|
|
.so man.macros
|
10 |
|
|
.HS canvasprintdialog iwid
|
11 |
|
|
.BS
|
12 |
|
|
'\" Note: do not modify the .SH NAME line immediately below!
|
13 |
|
|
.SH NAME
|
14 |
|
|
canvasprintdialog \- Create and manipulate a canvas print dialog widget
|
15 |
|
|
.SH SYNOPSIS
|
16 |
|
|
\fBcanvasprintdialog\fI \fIpathName \fR?\fIoptions\fR?
|
17 |
|
|
.SH "INHERITANCE"
|
18 |
|
|
itk::Toplevel <- Dialogshell <- Dialog <- Canvasprintdialog
|
19 |
|
|
.SH "STANDARD OPTIONS"
|
20 |
|
|
.LP
|
21 |
|
|
.nf
|
22 |
|
|
.ta 4c 8c 12c
|
23 |
|
|
\fBactiveBackground\fR \fBbackground\fR \fBborderWidth\fR \fBcursor\fR
|
24 |
|
|
\fBforeground\fR \fBhighlightBackground\fR \fBhighlightColor\fR \fBhighlightThickness\fR
|
25 |
|
|
\fBinsertBackground\fR \fBinsertBorderWidth\fR \fBinsertOffTime\fR \fBinsertOnTime\fR
|
26 |
|
|
\fBinsertWidth\fR \fBrelief\fR \fBrepeatDelay\fR \fBrepeatInterval\fR
|
27 |
|
|
\fBselectBackground\fR \fBselectBorderWidth\fR \fBselectForeground\fR
|
28 |
|
|
.fi
|
29 |
|
|
.LP
|
30 |
|
|
See the "options" manual entry for details on the standard options.
|
31 |
|
|
.SH "ASSOCIATED OPTIONS"
|
32 |
|
|
.LP
|
33 |
|
|
.nf
|
34 |
|
|
.ta 4c 8c 12c
|
35 |
|
|
\fBfilename\fR \fBhpagecnt\fR \fBorient\fR \fBoutput\fR
|
36 |
|
|
\fBpagesize\fR \fBposterize\fR \fBprintcmd\fR \fBprintregion\fR
|
37 |
|
|
\fBvpagecnt\fR
|
38 |
|
|
.fi
|
39 |
|
|
.LP
|
40 |
|
|
See the "canvasprintbox" widget manual entry for details on the above
|
41 |
|
|
associated options.
|
42 |
|
|
|
43 |
|
|
.SH "INHERITED OPTIONS"
|
44 |
|
|
.LP
|
45 |
|
|
.nf
|
46 |
|
|
.ta 4c 8c 12c
|
47 |
|
|
\fBbuttonBoxPadX\fR \fBbuttonBoxPadY\fR \fBbuttonBoxPos\fR \fBpadX\fR
|
48 |
|
|
\fBpadY\fR \fBseparator\fR \fBthickness\fR
|
49 |
|
|
.fi
|
50 |
|
|
.LP
|
51 |
|
|
See the "dialogshell" widget manual entry for details on the above
|
52 |
|
|
inherited options.
|
53 |
|
|
.LP
|
54 |
|
|
.nf
|
55 |
|
|
.ta 4c 8c 12c
|
56 |
|
|
\fBmaster\fR \fBmodality\fR
|
57 |
|
|
.fi
|
58 |
|
|
.LP
|
59 |
|
|
See the "shell" widget manual entry for details on the above
|
60 |
|
|
inherited options.
|
61 |
|
|
.LP
|
62 |
|
|
.LP
|
63 |
|
|
.nf
|
64 |
|
|
.ta 4c 8c 12c
|
65 |
|
|
\fBtitle\fR
|
66 |
|
|
.fi
|
67 |
|
|
.LP
|
68 |
|
|
See the "Toplevel" widget manual entry for details on the above
|
69 |
|
|
inherited options.
|
70 |
|
|
.LP
|
71 |
|
|
.SH "WIDGET-SPECIFIC OPTIONS"
|
72 |
|
|
.LP
|
73 |
|
|
.BE
|
74 |
|
|
|
75 |
|
|
.SH DESCRIPTION
|
76 |
|
|
.PP
|
77 |
|
|
The \fBcanvasprintdialog\fR command creates a print dialog for printing
|
78 |
|
|
the contents of a canvas widget to a printer or a file. It is possible
|
79 |
|
|
to specify page orientation, the number of pages to print the image on
|
80 |
|
|
and if the output should be stretched to fit the page.
|
81 |
|
|
|
82 |
|
|
.SH "METHODS"
|
83 |
|
|
.PP
|
84 |
|
|
The \fBcanvasprintdialog\fR command creates a new Tcl command whose
|
85 |
|
|
name is \fIpathName\fR. This
|
86 |
|
|
command may be used to invoke various
|
87 |
|
|
operations on the widget. It has the following general form:
|
88 |
|
|
.DS C
|
89 |
|
|
\fIpathName option \fR?\fIarg arg ...\fR?
|
90 |
|
|
.DE
|
91 |
|
|
\fIOption\fR and the \fIarg\fRs
|
92 |
|
|
determine the exact behavior of the command. The following
|
93 |
|
|
commands are possible for canvasprintdialog widgets:
|
94 |
|
|
.SH "ASSOCIATED METHODS"
|
95 |
|
|
.LP
|
96 |
|
|
.nf
|
97 |
|
|
.ta 4c 8c 12c
|
98 |
|
|
\fBgetoutput\fR \fBsetcanvas\fR \fBrefresh\fR \fBprint\fR
|
99 |
|
|
.fi
|
100 |
|
|
.LP
|
101 |
|
|
See the "canvasprintbox" class manual entry for details on the
|
102 |
|
|
associated methods.
|
103 |
|
|
.SH "INHERITED METHODS"
|
104 |
|
|
.LP
|
105 |
|
|
.nf
|
106 |
|
|
.ta 4c 8c 12c
|
107 |
|
|
\fBadd\fR \fBbuttonconfigure\fR \fBdefault\fR \fBhide\fR
|
108 |
|
|
\fBinsert\fR \fBinvoke\fR \fBshow\fR
|
109 |
|
|
.fi
|
110 |
|
|
.LP
|
111 |
|
|
See the "buttonbox" widget manual entry for details on the above
|
112 |
|
|
inherited methods.
|
113 |
|
|
.LP
|
114 |
|
|
.nf
|
115 |
|
|
.ta 4c 8c 12c
|
116 |
|
|
\fBactivate\fR \fBdeactivate\fR
|
117 |
|
|
.fi
|
118 |
|
|
.LP
|
119 |
|
|
See the "dialogshell" widget manual entry for details on the above
|
120 |
|
|
inherited methods.
|
121 |
|
|
|
122 |
|
|
.SH "WIDGET-SPECIFIC METHODS"
|
123 |
|
|
.TP
|
124 |
|
|
\fIpathName \fBcget\fR \fIoption\fR
|
125 |
|
|
Returns the current value of the configuration option given
|
126 |
|
|
by \fIoption\fR.
|
127 |
|
|
\fIOption\fR may have any of the values accepted by
|
128 |
|
|
the \fBcanvasprintdialog\fR command.
|
129 |
|
|
.TP
|
130 |
|
|
\fIpathName\fR \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
|
131 |
|
|
Query or modify the configuration options of the widget.
|
132 |
|
|
If no \fIoption\fR is specified, returns a list describing all of
|
133 |
|
|
the available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
|
134 |
|
|
information on the format of this list). If \fIoption\fR is specified
|
135 |
|
|
with no \fIvalue\fR, then the command returns a list describing the
|
136 |
|
|
one named option (this list will be identical to the corresponding
|
137 |
|
|
sublist of the value returned if no \fIoption\fR is specified). If
|
138 |
|
|
one or more \fIoption\-value\fR pairs are specified, then the command
|
139 |
|
|
modifies the given widget option(s) to have the given value(s); in
|
140 |
|
|
this case the command returns an empty string.
|
141 |
|
|
\fIOption\fR may have any of the values accepted by
|
142 |
|
|
the \fBcanvasprintdialog\fR
|
143 |
|
|
command.
|
144 |
|
|
|
145 |
|
|
.SH "COMPONENTS"
|
146 |
|
|
.LP
|
147 |
|
|
.nf
|
148 |
|
|
Name: \fBcpb\fR
|
149 |
|
|
Class: \fBCanvasprintbox\fR
|
150 |
|
|
.fi
|
151 |
|
|
.IP
|
152 |
|
|
The cpb component is the canvas print box for the canvas print dialog.
|
153 |
|
|
See the "canvasprintbox" widget manual entry for details on the cpb
|
154 |
|
|
component item.
|
155 |
|
|
.fi
|
156 |
|
|
|
157 |
|
|
.SH EXAMPLE
|
158 |
|
|
.DS
|
159 |
|
|
canvasprintdialog .cpb
|
160 |
|
|
.cpb activate
|
161 |
|
|
.DE
|
162 |
|
|
.SH AUTHOR
|
163 |
|
|
Tako Schotanus
|
164 |
|
|
.LP
|
165 |
|
|
Tako.Schotanus@bouw.tno.nl
|
166 |
|
|
.SH KEYWORDS
|
167 |
|
|
canvasprintdialog, canvasprintbox, dialog, widget
|