********************************************************************************
* Hpattl! Delphi Component                                                    *
********************************************************************************

Unit alias:       ImageButton
Name:             Image Button
Version:          1.10
Requires:         Delphi 2.0/3.0/4.0
Files:            ImageButton.pas, ImageButton.dcr, ImageButton.txt
Last revised:     Dec 7th, 1998
Notes:            FreeWare!
Updates under:	  www.neveprise-inc.de
Mail to:	  mail@neveprise-inc.de

********************************************************************************
* ImageButton Copyright 1997-'98 by Neveprise Inc., SD                        *
********************************************************************************

1. Description
2. How to install
3. Working with TImageButton
4. Disclaimer






1. Description
================================================================================

TImageButton is a very very very simple and silly component. It is a modified
TImage container with two additional properties: UpPicture and DownPicture.
Thus, ImageButton is designed to be a graphical button, inheriting all the
properties of TImage. In those additional props of kind TPicture you can add
the images of a button in pressed and released state. When the user clicks
dis button, the images are replaced accordingly.
TImageButton is interesting when creating non-windows-style forms.

NOTE: this component is rather old - i am working on a newer and enhanced ver-
sion of it. If you want a button that also responses on mouse capture,
please use AdvancedImageButton (it is like flat buttons). Though using an elder
technique, AdvancedImageButton may not work under all circumstances.
The forthcoming version of ImageButton will will be better...

2. How to install
================================================================================

Shall be very simple:

First, copy the files "ImageButton.pas" and "ImageButton.dcr" into a special
folder, e.g. "C:\Data\Delphi Progs\Components".
If you haven't already, start your Delphi IDE and select "Components|Install
components". In the dialog displayed, select wether "Into existing package"
(recommended) or "Into new package" (if so, type in a new package filename and
-folder). Click the upper button labeled "Browse" and select the BlinkLabel
file in the location you copied it to.
When done, click "Ok" and let Delphi compile the whole package in the next
dialog. Close this window and TImageButton should have been installed.


3. Working with TImageButton
================================================================================

First, let me show new properties introduced by TImageButton:

- TPicture   UpPicture              image showing button's released state
- TPicture   DownPicture:           image showing button's pressed state

All these properties can be set visually through Delphi's Object Inspector.

When dragged the new component onto a form, please commence setting those props:

First specify it's initial picture in the Picture property. Normally, this will
be the same image like UpPicture (the next version will NOT know this property
any longer cos there is no need to).
Put the same image in UpPicture and another showing the button when pressed
into DownPicture. On tag "Events", create a handler for the OnClick event,
executing the code when the button is pressed.
Note that all used images should be of same size to avoid misbehaviour of this
component. It is recommended to use icons or bitmaps (and not jpegs etc.), so
you can use shaped buttons with transparency.



4. Disclaimer
================================================================================

This component is freeware, meaning you can freely use and redistribute this code.
If you do so, please do only copy the original .zip file. If you perform any
modifications to code or documentation, please make a clear note into dis document!

Cos TImageButton is freeware, the author

a) claims that dis ware is "as is" and that there is NO guarantee that it will
work correctly, as it was intended to work.

b) is NOT responsible for ANY direct or indirect damages dis software may cause.

Notice that Neveprise takes great care with it's products, so any bad malfunction
is very unlikely.

							Blazko, March 13th, 1999

-EOF-