There is several free-ware Gradient Components on the DelphiPages site
(www.delphipages.com) under Graphics. A useful one is the HarmGradient
component and comes with source so you can see how it is done.
-----Original Message-----
From: Colin Fraser [mailto:[EMAIL PROTECTED]]
Sent: Monday, 26 June 2000 09:52
To: Multiple recipients of list delphi
Subject: [DUG]: Gradient Fills
Hi all, just wondering how everyone else does gradient fills... do you do it
manually or is there a fast function...
I found a GradientFill in the Windows unit... couldn't find any
documentation for it in Delphi, implemented it, found that it needed Win
2000 or Win 98 to work (I guess that is why it wasn't documented!)...
Marching onwards I found the below in Delphi's help... Couldn't get that
working (or find the appropriate function) either.
Any help appreciated.
Regards
Colin
-----------Delphi Help on Gradient Fill Follows-----------------
Applies to
TCanvas
Declaration
procedure GradientFill(Canvas: TCanvas; Const Rect: TRect; top, bottom:
TColor; Horizontal: Boolean);
Description
The GradientFill method is used to fill a Screen area with multi-colored
lines to obtain a nice shadow effect and coloured backgrounds. The
Chart.Gradient component uses this method internally. Chart.pas must be in
your uses clause.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
CAUTION - This message may contain privileged and confidential information intended
only for the
use of the addressee(s) named above. If you are not the intended recipient of this
message you are
hereby notified that any use, dissemination, distribution or reproduction of this
message is prohibited.
If you have received this message in error please notify Progressive Enterprises Ltd.
immediately via
email at [EMAIL PROTECTED] Any views expressed in this message
are those of the
individual sender and may not necessarily reflect the views of Progressive Enterprises
Ltd.
This footnote also confirms that Progressive Enterprises Ltd. has swept this email
message for the
presence of computer viruses. This does not guarantee this message is virus free.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz