📄 readme.htm
字号:
<li>
<code>Demo\SysInfoDemo.dpr</code> – demo program project
file.
</li>
<li>
<code>Demo\SysInfoDemo.res</code> – demo program resource
file (contains icon).
</li>
<li>
<code>Demo\SysInfoDemo.cfg</code> – compiler config file
for demo program.
</li>
<li>
<code>Demo\FmDemo.pas</code> – demo program main form
source code.
</li>
<li>
<code>Demo\FmDemo.dfm</code> – demo program main form.
</li>
</ul>
<p>
You can now proceed to install the unit using the
<strong>emphasised</strong> files above. Installation methods vary between
Delphi versions, so follow the instructions that apply to your version
below. Note that <code><strong>$(DELPHI)</strong></code> represents the
path where the appropriate version of Delphi was installed. Similarly
<code><strong>$(BDS)</strong></code> refers to the installation path of a
version of the Borland Development System.
</p>
<ul>
<li><a href="#bds">Installation with Delphi 2005 & 2006</a></li>
<li><a href="#d3">Installation with Delphi 3 to 7</a></li>
</ul>
<h3 id="bds">Installation with Delphi 2005 & 2006</h3>
<p>
The unit must be installed into a Delphi Win32 design package. It is assumed
that you will be installing into an existing package. You may decide to
install into the "user" package:
<code>$(BDS)\Lib\dclusr.dpk</code>.
</p>
<ol class="spaced">
<li>
Decide upon a suitable location into which to install the components.
This may be a subdirectory of your <code>Borland Studio Projects</code>
or <code>$(BDS)\lib</code> folders.
</li>
<li>
Copy <code>PJSysInfo.pas</code> and <code>PJSysInfo.dcr</code> to the
chosen installation folder.
</li>
<li>
Start the Development System (selecting the Delphi Win32 personality if
appropriate) then:
<ul>
<li>
Open the required package. Select <em>File | Open</em> menu and
choose a suitable package source file.
</li>
<li>
The package will now be displayed in the Project Manager with a
<code>.bpl</code> extension. Right click the package's entry and
select <em>Add</em> to display the <em>Add</em> dialog box.
Enter the full path to <code>PJSysInfo.pas</code> in the
<em>Unit file name</em> edit box (use the <em>Browse</em> button
to navigate to the file). Click <em>OK</em> to add the component
to the package.
</li>
<li>
Back in the Project Manager, check that all the added files
appear under the package's <em>Contains</em> node. If so, right
click the package's entry again and select <em>Compile</em>. If
the resulting compilation succeeds a message should be displayed
confirming that <var>TPJSysInfo</var> has been registered. The
component should now appear in the "DelphiDabbler"
section of the Tool Palette. (Note this will only appear when a
form is selected in the designer).
</li>
<li>
If the component does not appear the package may not have been
installed. Install it from the Project Manager by selecting the
package's <em>Install</em> right click menu option.
</li>
<li>
Close the package project using the <em>File | Close</em> menu
item. Accept any prompt that offers to save the package project.
</li>
</ul>
</li>
<li>
If you wish you can now delete <code>PJSysInfo.pas</code> from the
chosen installation folder.
</li>
<li>
The supplied help file cannot be integrated with the IDE's help system.
However it can be used independently of the IDE, albeit with reduced
functionality.
</li>
<li>
The demo programs can be loaded into Delphi and compiled and run as
required.
</li>
</ol>
<h3 id="d3">Installation with Delphi 3 to 7</h3>
<p>
The components must be installed into a design package. It is assumed that
you will be installing into an existing package. You may wish to use the
"user" package named <code>dclusr.dpk</code> or
<code>dclusrXX.dpk</code> (where <code>XX</code> is a version number). This
package can be found in <code>$(DELPHI)\Lib</code>. Ensure that the chosen
package "requires" <code>designide.dcp</code>.
</p>
<ol class="spaced">
<li>
Decide upon a suitable location into which to install the components.
This may be a subdirectory of your <code>$(DELPHI)\lib</code> folder.
</li>
<li>
Copy <code>PJSysInfo.pas</code> and <code>PJSysInfo.dcr</code> to the
chosen installation folder.
</li>
<li>
Start Delphi then:
<ul>
<li>
Choose the <em>Component | Install Component</em> menu option to
display the <em>Install Component</em> dialog box. Ensure the
<em>Into existing package</em> tab is selected. Enter the full
path to <code>PJSysInfo.pas</code> in the <em>Unit file
name</em> edit box (use the adjacent <em>Browse</em> button to
navigate to the file). Choose the required package from the
<em>Package description</em> combo box, or by navigating to the
package using <em>Browse</em>. Click <em>OK</em> to confirm your
selections.
</li>
<li>
A confirmation dialog box may displayed, querying whether it is
OK to rebuild and reinstall the package. Click <em>Yes</em> to
proceed.
</li>
<li>
The package will now be built and a dialog box should be
displayed stating that the <var>TPJSysInfo</var> component has
been installed. Click <em>OK</em> to dismiss the dialog box.
</li>
<li>
The component will appear on the "DelphiDabbler"
palette.
</li>
</ul>
</li>
<li>
If you wish you can now delete <code>PJSysInfo.pas</code> from the
chosen installation folder.
</li>
<li>
The provided help file can be integrated with the IDE's OpenHelp system.
Delphi 6 and 7 also require the use of the supplied <code>.als</code>
file. The simplest way to install help is to use my
<a href="http://www.delphidabbler.com/software?id=chi">Component Help
Installer Expert</a> (v2.2.1 or later). If you prefer to install
manually,
<a href="http://www.delphidabbler.com/articles?article=15">this
article</a> explains the process.
</li>
<li>
The demo program can be loaded into Delphi and compiled and run as
required.
</li>
</ol>
<p class="gototop">
» <a href="#contents">Contents</a>
</p>
<h2 id="update">
Update History
</h2>
<p>
A complete change log is provided in a text file that is included in the
download.
</p>
<p class="gototop">
» <a href="#contents">Contents</a>
</p>
<h2 id="license">
License and Disclaimer
</h2>
<p>
This source code is subject to the Mozilla Public License Version 1.1 (the
"License"); you may not use this source code except in compliance
with the License. You may obtain a copy of the License at
<a href="http://www.mozilla.org/MPL/.">http://www.mozilla.org/MPL/</a>.
</p>
<p>
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
See the License for the specific language governing rights and limitations
under the License.
</p>
<p>
The Original Code is PJSysInfo (System Information Unit).
</p>
<p>
The Initial Developer of the Original Code is Peter Johnson
(<a href="http://www.delphidabbler.com/">http://www.delphidabbler.com/)</a>.
</p>
<p>
Portions created by the Initial Developer are Copyright © 2001-2005
Peter Johnson. All Rights Reserved.
</p>
<p>
Contributor(s):
</p>
<p class="indent">
Guillermo Fazzolari (bug fix in v2.0.1)
</p>
<p>
All relevant trademarks are acknowledged.
</p>
<p class="gototop">
» <a href="#contents">Contents</a>
</p>
<h2 id="author">
About the Author
</h2>
<p>
I'm Peter Johnson – a hobbyist programmer living in Ceredigion in West
Wales, UK, writing write mainly in Delphi. My programs are available for
download from:
<a href="http://www.delphidabbler.com/">http://www.delphidabbler.com/</a>.
</p>
<p>
I can be <a href="http://www.delphidabbler.com/contact">contacted via the
website.</a>
</p>
<div class="endnotes">
<div class="comments">
Please
<a href="http://www.delphidabbler.com/contact">
let me know</a> if you have any comments about the components, if you
have found a bug, or you want to suggest any updates.
</div>
<div class="copyright">
This info sheet is copyright © 2005, P D Johnson,
<a href="http://www.delphidabbler.com/">
www.delphidabbler.com</a>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -