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

📄 mdi wallpaper package readme.htm

📁 delphi编程控件
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <meta name="GENERATOR" content="Mozilla/4.6 [en] (WinNT; I) [Netscape]">
   <meta name="Author" content="Robert Rossmair">
   <meta name="KeyWords" content="MDI, background graphic, Delphi, TMDIWallpaper">
   <meta name="Description" content="The MDIWallp Delphi unit implements TMDIWallpaper, a background graphic component for MDI frame windows.">
   <title>MDI Wallpaper package readme file</title>
</head>
<body>

<center>&nbsp;<b><font color="#000000"><font size=+1>______________________________________</font></font></b>
<p><b><font color="#000000"><font size=+1>MDI Wallpaper Delphi Component</font></font></b>
<br><b><font color="#000000"><font size=+1>version 4.0</font></font></b>
<br><font color="#000000">by Robert Rossmair</font>
<br><b><font color="#000000"><font size=+1>______________________________________</font></font></b></center>

<p><br>
<br>
<br>
<p><a href="#Description">Description</a>
<br><a href="#Compatibilty">Compatibility</a>
<br><a href="#Versions">Current file versions</a>
<br><a href="#Recent changes">Recent changes</a>
<br><a href="#History">History</a>
<br><a href="#Installation">Installation</a>
<br><a href="#Help file installation">Help file installation</a>
<br><a href="#File list">File list</a>
<br><a href="#Copying policy">Copying policy</a>
<br><a href="#New versions">New versions</a>
<p>
<hr WIDTH="100%">
<h4>
<a NAME="Description"></a>Description</h4>
TMDIWallpaper is a background graphic component for MDI frame windows.
<br>It has been written to be used especially with MDI frame windows (that
is, forms with FormStyle set to fsMDIForm), but it will work with non-MDI
forms, too.
<h4>
<a NAME="Compatibilty"></a><b>Compatibilty</b></h4>
Delphi 2.0 / Delphi 3
<h4>
<a NAME="Versions"></a><b>Current file versions</b></h4>
MDIWallp unit: 4.0 (02-Jun-1999)
<br>Demo project: 1.2 (02-Jun-1999)
<h4>
<a NAME="What's new"></a>What's new</h4>

<blockquote><font size=-1>Big transparent bitmaps caused form background
painting to be awkwardly slow in earlier versions; a fact which successfully
escaped my attention until recently, when the implementation of the GrayMapped
property required some code redesign. This is fixed in version 4.</font></blockquote>
<tt><b>property</b> GrayMapped: Boolean;</tt>
<dl>
<dl><font size=-1>When GrayMapped is set to True and Picture.Graphic is
a bitmap with 256 or less colors or a TGIFImage (GIFImage unit by Anders
Melander et alii), all gray scale colors in the bitmap will be mapped to
a "clBtnFace scale".</font>
<br><font size=-1>When GrayMapped is set to True and Picture.Graphic is
a bitmap with more than 256 colors or another TGraphic descendant, all
colors in Picture.Graphic will be mapped to a clBtnFace color gradation.</font>
<br><font size=-1>This is an substantially enhanced variant of a feature
suggested by Harald Marschalek.</font>
<br><font size=-1><b>Note</b>: This feature is not available if the unit
is compiled using Delphi 2. Sorry...</font></dl>
</dl>
<tt><b>property</b> AutoSizeTile: Boolean;</tt>
<br><tt><b>property</b> TileWidth: Integer;</tt>
<br><tt><b>property</b> TileHeight: Integer;</tt>
<blockquote><font size=-1>The TileWidth and TileHeight properties allow
to specify horizontal respectively vertical drawing offsets in tiling mode
which are greater than the Picture dimensions. This can be useful especially
with tranparent graphics. When AutoSizeTile is set to <i>True</i>, the
tile size defaults to the Picture dimensions.</font></blockquote>

<h4>
<a NAME="Recent changes"></a>Recent changes</h4>

<dl>Version 3.1 (03-Feb-1999):
<br>&nbsp;
<dl><font size=-1>Fixes bug which prevented the background from being updated
when the Picture property is set to nil.</font>
<br><font size=-1>Adds the Enabled property.</font></dl>
Version 3.01 (13-Aug-1998):
<br>&nbsp;
<dl><font size=-1>As a goodie for D2 users, TMDIWallpaper sets the proper
(WS_EX_CLIENTEDGE) border style for the MDI client window.</font></dl>
Version 3.0 (06-Aug-98):
<br>&nbsp;
<dl><font size=-1>introduces Picture, Shift, ShiftMode and Info properties;
the Picture property replaces the Bitmap property of prior component versions.</font>
<br><font size=-1>Some code sent to me by Kristoffer Henriksson pointed
me to a way how to overcome the problems which caused me to remove the
Mode property in V2.0.&nbsp; Hence V3.0 has a Mode property again.</font>
<br><font size=-1>Includes a demo application demonstrating the use of
the new properties Mode, Shift, ShiftMode and ZigZag.</font>
<br><font size=-1>Registers TGraphicEditor as component editor for TMDIWallpaper,
thus changing the double-click behavior in design mode (but beware! There's
a problem with Delphi 3, <a href="#D3Problem">see below</a>).</font></dl>
</dl>

<h4>
<a NAME="History"></a>History</h4>
Version 2.1.1 (25-Jun-98):
<blockquote><font size=-1>Cosmetic changes</font></blockquote>
Version 2.1.0 (11-Jun-98):
<blockquote><font size=-1>Zigzag property implemented (using code by Fabio
Cavicchio)</font></blockquote>
Version 2.0.0 (26-Apr-98):
<blockquote><font size=-1>This version fixes the bug that version 1.6 only
claimed to fix... (versions &lt; 2.0.0 will not redraw correctly if a MDI
child window which has been moved partially out of view is scrolled in
view again (unfortunately this hadn't been tested ever).</font>
<br><font size=-1>Note that I found the values for internal constants ScrollUnit
and ScrollLineSize by experimenting, so there is no guarantee that they
are valid under all circumstances. However, tests did not give any hints
that they are not.</font>
<br><font size=-1>The Mode property has been removed.&nbsp; The virtual
desktop of a MDI frame window is best considered as infinite in size (you
may move a MDI child to the left until it's almost completely outside the
window, then scroll it in view, then again move it to the left and so forth...);
therefore notions like 'top', 'left', 'center' are meaningless in this
context.</font>
<br><font size=-1>The component now always works in a mode equivalent to
Mode=wpTile in earlier versions.</font>
<br><font size=-1>Bug fix: Previous versions won't redraw correctly for
scrollbar positions &lt;> 0.</font></blockquote>
Version 1.5 (06-Mar-98):
<ul>
<li>
<font size=-1>MDIWallpaper package comes with an online-help file now.
While it is written for Delphi 3, it will work with Delphi 2.0, too, with
the restriction that links to Delphi 2.0 online-help topics won't work.
See below for installation instructions.</font></li>

<li>
<font size=-1>Added transparency code by Mike Burton (see below), with
some modifications, among others:</font></li>

<br><font size=-1>- SetTransparent property access method</font>
<br><font size=-1>- TransparentColor property</font>
<br><font size=-1>- TransparentMode property</font>
<br><font size=-1>#########################################</font>
<br><font size=-1>05-Mar-1998</font>
<ul><font size=-1>Michael Burton AMS-Services, Inc.</font>
<br><font size=-1>burtonmi@ams.iix.com</font>
<p><font size=-1>Add a transparent background to the</font>
<br><font size=-1>bitmap. Use the upper-left pixel of</font>
<br><font size=-1>the bitmap as the transparent color.</font>
<p><font size=-1>Add a Transparent property to control</font>
<br><font size=-1>the transparent background.</font></ul>
<font size=-1>#########################################</font></ul>
Version 1.4 (03-Mar-98):
<blockquote><font size=-1>Bug fix: Prior versions will not redraw correctly
on form resize if Mode property not in [wpTile, wpTopLeft].</font></blockquote>
Version 1.3 (09-Dez-97):
<blockquote><font size=-1>Make it work with non-MDI windows by commenting
out two lines in TMDIWallpaper.Create.</font>
<br><font size=-1>Minor fix.</font></blockquote>
Version 1.2 (28-Nov-97):
<blockquote><font size=-1>Added wpTopRight, wpBottomLeft, wpBottomRight.</font>
<br><font size=-1>Some fixes.</font></blockquote>
Version 1.1 (06-Nov-97):
<blockquote><font size=-1>added wpStretch</font></blockquote>
Version 1.0 (22-Oct-97):
<blockquote><font size=-1>First public release</font></blockquote>

<h4>
<a NAME="Installation"></a>Installation</h4>

<blockquote><b><font color="#FF6666">Important hint:</font></b> Since TMDIWallpaper's
Bitmap property has been removed in version 3.0, you are advised to save
to disk any bitmap data contained in any pre-3.0 version TMDIWallpaper
components and not available otherwise <b>before installing the new version!</b>
After having installed version 3.0 or greater, you can load them into the
new Picture property.</blockquote>
I suggest to unpack the zip-file into a private directory. Then click on
the <b>Component|Install...</b> (Delphi 2.0) respectively <b>Component|Install
Component...</b> (Delphi 3) menu item to open the component installation
dialog and proceed as usual.
<h4>
<a NAME="D3Problem"></a><font color="#FF6666">Delphi 3 problem</font></h4>
<font color="#000000">When installing mdiwallp.pas under Delphi 3, you
will experience a</font>
<blockquote><b><font color="#000000">File not found: 'LibConst.dcu'</font></b></blockquote>
<font color="#000000">error message.</font>
<p><font color="#000000">There are two alternative work-arounds for this
problem:</font>
<ul>
<li>
1. Remove 'PicEdit' from the uses clause in MDIWallp.pas's <b>implementation</b>
section.</li>

<br>2. Remove the line
<p><font face="Courier New,Courier">RegisterComponentEditor(TMDIWallpaper,
TGraphicEditor)</font>;
<p>from the <font face="Courier New,Courier">Register</font> procedure.
<br>This work-around has the consequence that in design mode double-clicking
the component won't bring up the Picture Editor.</ul>

<ul>
<li>
The second solution doesn't have this flaw:</li>

<br>1. Copy &lt;D3 directory>\Doc\PicEdit.int to the directory where MDIWallp.pas
resides and rename the copy to PicEdit.pas (it is probably not such good
an idea to overwrite the original PicEdit.dcu, hence don't copy it to &lt;D3
directory>\Lib).
<br>Although the file extension seems to imply that PicEdit.int only contains
PicEdit's interface section, this is not the case.
<br>2. Copy &lt;D3 directory>\Lib\PicEdit.dfm to the same directory.
<br>3. Replace the first lines of the implementation part of PicEdit.pas
by
<br>------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------
<br><b><font face="Courier New,Courier">implementation</font></b>
<p><font face="Courier New,Courier"><b>uses</b> TypInfo, SysUtils, LibHelp;</font>
<p><font face="Courier New,Courier">{$R *.DFM}</font>
<p><b><font face="Courier New,Courier">resourcestring</font></b>
<br><font face="Courier New,Courier">&nbsp; SLoadPictureTitle = 'Load Picture';</font>
<br><font face="Courier New,Courier">&nbsp; SSavePictureTitle = 'Save Picture
As';</font>
<br><font face="Courier New,Courier">&nbsp; srNone = '(None)';</font>
<p><font face="Courier New,Courier"><font color="#000080">{ TPictureEditorDlg
}</font></font>
<br>------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------8&lt;------
<br>and you are done.</ul>

<h4>
<a NAME="Help file installation"></a>Help file installation</h4>
Basically, MDIWallp.hlp and CompInfo.hlp are Delphi 3 help files. That
means that links into Delphi help files (e.g. to TComponent) won't work
with Delphi 2.0. However, they include both A- and B-links and thus provide
context-sensitive help for Delphi 2.0 as well as Delphi 3.
<p><u>Delphi 2.0:</u>
<ul>
<li>
Add</li>

<br><font color="#3333FF">:Index MDI Wallpaper Component Help=MDIWallp.hlp</font>

⌨️ 快捷键说明

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