MDI Wallpaper Delphi Component
version 4.0
by Robert Rossmair
______________________________________
Description
Compatibility
Current file versions
Recent changes
History
Installation
Help file installation
File list
Copying policy
New versions
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.property GrayMapped: Boolean;
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 True, the tile size defaults to the Picture dimensions.
Cosmetic changesVersion 2.1.0 (11-Jun-98):
Zigzag property implemented (using code by Fabio Cavicchio)Version 2.0.0 (26-Apr-98):
This version fixes the bug that version 1.6 only claimed to fix... (versions < 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).Version 1.5 (06-Mar-98):
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.
The Mode property has been removed. 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.
The component now always works in a mode equivalent to Mode=wpTile in earlier versions.
Bug fix: Previous versions won't redraw correctly for scrollbar positions <> 0.
Add a transparent background to the
bitmap. Use the upper-left pixel of
the bitmap as the transparent color.
Add a Transparent property to control
the transparent background.
Bug fix: Prior versions will not redraw correctly on form resize if Mode property not in [wpTile, wpTopLeft].Version 1.3 (09-Dez-97):
Make it work with non-MDI windows by commenting out two lines in TMDIWallpaper.Create.Version 1.2 (28-Nov-97):
Minor fix.
Added wpTopRight, wpBottomLeft, wpBottomRight.Version 1.1 (06-Nov-97):
Some fixes.
added wpStretchVersion 1.0 (22-Oct-97):
First public release
Important hint: 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 before installing the new version! After having installed version 3.0 or greater, you can load them into the new Picture property.I suggest to unpack the zip-file into a private directory. Then click on the Component|Install... (Delphi 2.0) respectively Component|Install Component... (Delphi 3) menu item to open the component installation dialog and proceed as usual.
File not found: 'LibConst.dcu'error message.
There are two alternative work-arounds for this problem:
RegisterComponentEditor(TMDIWallpaper, TGraphicEditor);
from the Register procedure.
This work-around has the consequence that in design mode double-clicking
the component won't bring up the Picture Editor.
uses TypInfo, SysUtils, LibHelp;
{$R *.DFM}
resourcestring
SLoadPictureTitle = 'Load Picture';
SSavePictureTitle = 'Save Picture
As';
srNone = '(None)';
{ TPictureEditorDlg
}
------8<------8<------8<------8<------8<------8<------
and you are done.
Delphi 2.0:
File | Description | Copying policy |
MDIWDemo.dpr | demo app. project file | 1 |
MDIWDemo.dof | demo app. project options | 1 |
MDIWMain.pas | demo app. main unit | 1 |
MDIWMain.dfm | demo app. main form | 1 |
MDIWChld.pas | demo app. MDI child form unit | 1 |
MDIWChld.dfm | demo app. MDI child form | 1 |
MDIWallp.pas | Component unit | 1 |
MDIWallp.dcr | Component resource | 1 |
MDIWallp.hlp | Component help file | 1 |
MDIWallp.kwf | keyword file for MDIWallp.hlp | 1 |
CopyrInf.pas | auxiliary unit | 1 |
CompInfo.pas | auxiliary unit | 1 |
CompInfo.dfm | "Component Information" dialog | 1 |
CompInfo.hlp | help file for CompInfo | 1 |
CompInfo.kwf | Keyword file for CompInfo.hlp | 1 |
mUrlLabel.pas | auxiliary unit for CompInfo | 2 |
mUrlLabel.dcr | mUrlLabel resource file | 2 |
mUrlLabel.res | mUrlLabel resource file | 2 |
RRColors.pas | auxiliary unit | 1 |
MDI Wallpaper package readme.htm | this file | 1 |
Use, modification and distribution is allowed without limitation, warranty, or liability of any kind.Copying policy 2 means:
These files are freeware copyright Ahto Tanner, Moon Software.
Last updated June 02, 1999.