📄 readme.htm
字号:
<html>
<head>
<title>ReadMe</title>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
</head>
<body BGCOLOR="#FFFFFF" TEXT="#000000">
<table WIDTH="100%" BORDER="0" CELLSPACING="5" CELLPADDING="5" BGCOLOR="#660000">
<tr>
<td>
<div ALIGN="CENTER"><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="6" COLOR="#FFFFFF"><b>Print
Preview Suite v4.76</b></font></div>
</td>
</tr>
</table>
<p><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Copyright ©
<a HREF="mailto:kambiz@delphiarea.com">Kambiz R. Khojasteh</a>. All rights reserved.<br>
Get future component updates from <a HREF="http://www.delphiarea.com">http://www.delphiarea.com</a>.<br>
</font></p>
<table BORDER="1" CELLSPACING="2" CELLPADDING="5" BORDERCOLOR="#FFFFFF" ALIGN="LEFT">
<tr BGCOLOR="#333333" ALIGN="CENTER" VALIGN="MIDDLE">
<td NOWRAP><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2" COLOR="#FFFFFF"><b>Delphi
3</b></font></td>
<td NOWRAP><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2" COLOR="#FFFFFF"><b>Delphi
4</b></font></td>
<td NOWRAP><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2" COLOR="#FFFFFF"><b>Delphi
5</b></font></td>
<td NOWRAP><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2" COLOR="#FFFFFF"><b>Delphi
6</b></font></td>
<td NOWRAP><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2" COLOR="#FFFFFF"><b>Delphi 7</b></font></td>
<td NOWRAP><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2" COLOR="#FFFFFF"><b>Delphi 2005 </b></font></td>
<td NOWRAP><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2" COLOR="#FFFFFF"><b>Delphi 2006</b></font></td>
</tr>
</table>
<p> </p>
<p> </p>
<p><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="1">
<a href="#DESCRIPTION">Description</a> <a href="#PROPERTIES">Key Properties</a> <a href="#METHODS">Key Methods</a> <a href="#EVENTS">Key Events</a> <a href="#GLOBAL_PROCEDURES">Global Procedures</a> <a href="#KEYBOARD_SHORTCUTS">Keyboard Shortcuts</a> <a href="#MOUSE_WHEEL">Mouse Wheel Functions</a> <a href="#ZLIB">Zlib Compression</a> <a href="#PDF">PDF Output</a> <a href="#TRANSPARENCY">Image Transparency</a> <a href="#KNOWN_BUGS">Known Issues</a> <a href="#HISTORY"></a><a href="#HISTORY">History</a> <a href="#ACKNOWLEDGMENT">Acknowledgment</a> <a href="#LICENSE">License</a> <a href="#DISCLAIMER">Disclaimer</a>
<br>
</font></p>
<p><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="4"><b><a NAME="DESCRIPTION"></a><br>
DESCRIPTION</b></font></p>
<blockquote>
<p><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">TPrintPreview
is a descendent of TScrollBox and has properties of both TScrollBox component
and TPrinter class. The key features of TPrintPreview are:</font></p>
<ul>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Automatically
adjusts printer's paper size and orientation at the print time</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Automatically
adjusts mapping modes</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Preview pages
can be scaled with an arbitrarily zoom factor</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Shows prepared
pages while the new pages are still in progress to be prepared</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Displayed
pages can be scrolled by mouse dragging</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Pages can
be saved/restored to/from disk</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Each page
is accessible as a Windows MetaFile image</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Regardless
of number of previewed pages and their complexity, only consumes a small
portion of Windows resources </font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Easy to use
for printing rich text and graphics</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Has a complete
set of events</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Has a complementary
control to show thumbnail pages</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Lets drawing of annotation
and background on the preview pages.</font></li>
</ul>
</blockquote>
<p><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><a NAME="PROPERTIES"></a><br>
<font SIZE="4">KEY PROPERTIES</font></b></font></p>
<ul>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">Aborted
</font></b><font SIZE="2">(Read-only)</font><b><font SIZE="2"><br>
</font></b><font SIZE="2"> Indicates whether the print process is aborted.<br>
<br>
</font></font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>Annotation:
Boolean<br>
</b>Indicates whether the annotation drawing is active.<br>
<br>
</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>Background: Boolean<br>
</b>Indicates whether the background drawing is active.<br>
<br>
</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">Canvas:
TCanvas </font></b><font SIZE="2">(Read-only)</font><b><font SIZE="2"><br>
</font></b><font SIZE="2"> Provides access to a drawing surface that represents
the page. Each page has its own canvas and any access to this property must
be inside the <i>BeginDoc</i> and <i>EndDoc</i> block.<br>
<br>
</font></font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>CurrentPage:
Integer<br>
</b>Determines the current showing page number.<br>
<br>
</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>DirectPrint:
Boolean<br>
</b>Determines whether the control creates preview pages or directly print
the pages on the printer.<br>
<br>
</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">Grayscale: TGrayscaleOptions<br>
TGrayscaleOptions = set of TGrayscaleOption<br>
TGrayscaleOption = (gsPreview, gsPrint)
<br>
</font></b><font SIZE="2">Indicates whether the preview and/or print pages should be converted to grayscale. <b><br>
</b> </font><font FACE="Verdana, Arial, Helvetica, sans-serif"><font SIZE="2"><br>
</font></font> </font>
<table WIDTH="90%" BORDER="0" CELLSPACING="5" CELLPADDING="0" ALIGN="CENTER">
<tr>
<td WIDTH="15%" VALIGN="TOP"><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>gsPreview</b></font></td>
<td WIDTH="20"> </td>
<td><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Shows preview pages in 256 grayscaled colors. Background and Anonation items will kept their original colors. </font></td>
</tr>
<tr>
<td WIDTH="15%" VALIGN="TOP"><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>gsPrint</b></font></td>
<td WIDTH="20"> </td>
<td><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">Reduces the colors of pages to 256 grayscaled colors and then print them.</font></td>
</tr>
</table>
<font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><br>
</font><font FACE="Verdana, Arial, Helvetica, sans-serif"><font SIZE="2">
</font></font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">Font: TFont<br>
</font></b><font SIZE="2">Specifies the default font for each new page. It is reommended to use a scalable font (e.g. TrueType and OpenType). </font><b><font SIZE="2"><br>
</font></b><font SIZE="2"> <br>
</font></font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">FormName:
String<br>
</font></b><font SIZE="2">Determines the name of selected form for the paper
size. </font><b><font SIZE="2"><br>
</font></b><font SIZE="2"> <br>
</font></font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">AutoFormName:
String<br>
</font></b><font SIZE="2">Determines the name of the form that is added by
the control automatically. </font><b><font SIZE="2"><br>
</font></b><font SIZE="2"> <br>
</font></font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>Orientation:
TPrinterOrientation<br>
TPrinterOrientation = (poPortrait, poLanscape)<br>
</b>Determines the the paper orientation of pages that will be created. The
paper orientation could not change inside the <i>BeginDoc</i> and <i>EndDoc</i>
block.<br>
<br>
</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">Pages[PageNo:
Integer]: TMetaFile </font></b><font SIZE="2">(Read-only)</font><b><font SIZE="2"><br>
</font></b><font SIZE="2">Contains the list of prepared pages.</font><b><font SIZE="2"><br>
</font></b></font><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><br>
</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">PageBounds:
TRect</font></b><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">
(Read-only)</font><b><font SIZE="2"><br>
</font></b><font SIZE="2">Specifies the bounding rectangle of the page in
logical coordinates. <br>
<br>
</font></font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">PageSize:
TPoint</font></b><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">
(Read-only)</font><b><font SIZE="2"><br>
</font></b><font SIZE="2">Specifies the paper size in logical coordinates.
<br>
<br>
</font></font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">PagePixels:
TPoint</font></b><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2">
(Read-only)</font><b><font SIZE="2"><br>
</font></b><font SIZE="2">Specifies the paper size in device coordinates.
<br>
<br>
</font></font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">PaperType:
TPaperType<br>
</font></b><font SIZE="2">Specifies the paper size by the paper's type. There
are 68 predefined sizes however by setting this property to <i>pCustom</i>
you can use <i>PaperWidth</i> and <i>PaperHeight</i> properties to set your
own custom paper size.<br>
<br>
</font></font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">PaperHeight:
Integer<br>
</font></b><font SIZE="2"> Determines the physical height of the paper in
logical units. Changing this property will change <i>PaperType</i> to <i>pCustom</i>.
The value of <i>PaperHeight</i> must be between 1 and 32767.<br>
<br>
</font></font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">PaperWidth:
Integer<br>
</font></b><font SIZE="2"> Determines the physical width of the paper in logical
units. Changing this property will change <i>PaperType</i> to <i>pCustom</i>.
The value of <i>PaperWidth</i> must be between 1 and 32767.<br>
<br>
</font></font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">PrinterInstalled:
Boolean</font></b><font SIZE="2"> (Read-only)<br>
Indicates whether is there any installed printer (driver) on the system.<br>
<br>
</font></font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">PrinterPageBounds:
TRect</font></b><font SIZE="2"> (Read-only)<br>
</font><font SIZE="2" FACE="Verdana, Arial, Helvetica, sans-serif">Specifies the bounding rectangle of the printer's printable area in logical coordinates. </font><font SIZE="2"><br>
<br>
</font></font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><b>PrintJobTitle:
String<br>
</b>Specifies the title of the print job on the system's print queue.<br>
<br>
</font></li>
<li><font FACE="Verdana, Arial, Helvetica, sans-serif"><b><font SIZE="2">State:
TPreviewState </font></b><font SIZE="2">(Read-only)<b><br>
TPreviewState = (psReady, psCreating, psPrinting, psEditing)<br>
</b> Determines the current state of the control.<br>
<br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -