1iwidgets::canvasprintdialog  −  Create  and  manipulate  a canvas
2print dialog  widget  iwidgets::canvasprintdialog  pathName  ?op‐

tions? itk::Toplevel <‐ iwidgets::Dialogshell <‐ iwidgets::Dia‐

4log <‐ iwidgets::Canvasprintdialog

activeBackground background borderWidth cursor

foreground highlightBackground highlightColor highlightThickness

insertBackground insertBorderWidth insertOffTime insertOnTime

insertWidth relief repeatDelay repeatInterval

selectBackground selectBorderWidth selectForeground

10See the "options" manual entry for details on  the  standard  op‐
11tions.

filename hpagecnt orient output

pagesize posterize printcmd printregion

vpagecnt

15See  the  "canvasprintbox" widget manual entry for details on the
16above associated options.
17

buttonBoxPadX buttonBoxPadY buttonBoxPos padX

padY separator thickness

20See the "dialogshell" widget manual  entry  for  details  on  the
21above inherited options.

master modality

23See  the "shell" widget manual entry for details on the above in‐
24herited options.

title

26See the "Toplevel" widget manual entry for details on  the  above
27inherited options.
28
29The  iwidgets::canvasprintdialog  command  creates a print dialog
30for printing the contents of a canvas widget to a  printer  or  a
31file.  It  is possible to specify page orientation, the number of
32pages to print the image on and if the output should be stretched
33to fit the page.
34
35The iwidgets::canvasprintdialog command creates a new Tcl command
36whose name is pathName.  This command may be used to invoke vari‐
37ous operations on the widget.  It has the following general form:

pathName option ?arg arg ...? Option and the args determine the

39exact behavior of the command.  The following commands are possi‐
40ble for canvasprintdialog widgets:

getoutput setcanvas refresh print

42See the "canvasprintbox" class manual entry for  details  on  the
43associated methods.

add buttonconfigure defaulthide

insert invoke show

46See  the "buttonbox" widget manual entry for details on the above
47inherited methods.

activate deactivate

49See the "dialogshell" widget manual  entry  for  details  on  the
50above inherited methods.
51

pathName cget option Returns the current value of the configura‐

53tion option given by option.  Option may have any of  the  values
54accepted  by  the  iwidgets::canvasprintdialog command.  pathName

configure ?option? ?value option value ...? Query or modify the

56configuration  options of the widget.  If no option is specified,
57returns a list describing all of the available options for  path‐

Name (see Tk_ConfigureInfo for information on the format of this

59list).  If option is specified with no value,  then  the  command
60returns a list describing the one named option (this list will be
61identical to the corresponding sublist of the value  returned  if
62no  option  is specified).  If one or more option−value pairs are
63specified, then the command modifies the given  widget  option(s)
64to  have the given value(s);  in this case the command returns an
65empty string.  Option may have any of the values accepted by  the

iwidgets::canvasprintdialog command.

67
68Name:           cpb
69Class:          Canvasprintbox
70The  cpb  component  is the canvas print box for the canvas print
71dialog.  See the "canvasprintbox" widget manual entry for details
72on the cpb component item.
73
74 package require Iwidgets 4.0
75 iwidgets::canvasprintdialog .cpb
76 .cpb  activate  Tako  Schotanus  Tako.Schotanus@bouw.tno.nl can‐
77vasprintdialog, canvasprintbox, dialog, widget
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Impressum