Hi
Suggestion 1:
In the Jedi Components there are a component called TJvGradient.

You may retrieve the latest version of this file at the Project JEDI's
JVCL home page, located at http://jvcl.sourceforge.net

Suggestion 2:
Drop a TImage onto your form, set its aligned property to alClient,
its strech property to true and then load a wmf (Windows Meta File) 
or a emf (Enhanced Meta File)-who itself should be a gradient fill-into 
the control. (the reason for this file formats, is oddly enough it
didn't add too much size to my exe)

Suggestion 3:
The Chart component has a function to gradient fill its background.
It doesn't flicker, so much, on repaints and gives you the opportunity
to choose start/end colours and the direction of the gradient at will.
Implementing it is all click and create.

Suggestion 4:
Please note I didn't test this function, so I will be glad for some
feedback around it, if it works or not, and even how it works.

Windows.pas
function GradientFill(DC: HDC; var Vertex: TTriVertex; NumVertex: ULONG;
Mesh: Pointer; NumMesh, Mode: ULONG): BOOL; stdcall;

Suggestion 5:
Under the following web-site I found several discussions about the
gradient:
http://www.efg2.com/Lab/Library/Delphi/Graphics/Color.htm#ColorGradient

I do not know if there are any better suggestions out there, so please
let me know.

Hope it helps?
Johan Fourie
Systems Architect


NOTICE: Please note that this eMail, and the contents thereof, is subject to 
the standard arivia.kom email disclaimer which may be found at:  
http://www.arivia.co.za/internet/disclaimer.htm.  If you cannot access the 
disclaimer through the URL attached, and you wish to receive a copy thereof, 
please send an eMail to [EMAIL PROTECTED] or call (011) 233-0800. You will 
receive the disclaimer by return email or fax.




_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to