home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'EsGrad.pas' rev: 3.00
-
- #ifndef EsGradHPP
- #define EsGradHPP
- #include <EsData.hpp>
- #include <EsConst.hpp>
- #include <Messages.hpp>
- #include <Graphics.hpp>
- #include <Controls.hpp>
- #include <Classes.hpp>
- #include <Windows.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Esgrad
- {
- //-- type declarations -------------------------------------------------------
- enum TGradDirection { dHorizontal, dVertical };
-
- typedef Word TEsColorBand;
-
- class DELPHICLASS TEsCustomGradient;
- class PASCALIMPLEMENTATION TEsCustomGradient : public Controls::TGraphicControl
- {
- typedef Controls::TGraphicControl inherited;
-
- protected:
- Graphics::TColor FFromColor;
- Graphics::TColor FToColor;
- TGradDirection FDirection;
- TEsColorBand FColorBands;
- int gGradColors[256];
- HPALETTE gPalette;
- System::AnsiString __fastcall GetVersion();
- void __fastcall SetColorBands(TEsColorBand Value);
- void __fastcall SetDirection(TGradDirection Value);
- void __fastcall SetFromColor(Graphics::TColor Value);
- void __fastcall SetToColor(Graphics::TColor Value);
- void __fastcall SetVersion(const System::AnsiString Value);
- void __fastcall gCalculateColors(void);
- void __fastcall gFillRectGradient(HDC DC, const Windows::TRect &R);
- MESSAGE void __fastcall WMEraseBkgnd(Messages::TWMEraseBkgnd &Msg);
- DYNAMIC bool __fastcall PaletteChanged(bool Foreground);
- virtual void __fastcall Paint(void);
- __property TEsColorBand ColorBands = {read=FColorBands, write=SetColorBands, default=128};
- __property TGradDirection Direction = {read=FDirection, write=SetDirection, default=0};
- __property Graphics::TColor FromColor = {read=FFromColor, write=SetFromColor, default=255};
- __property Graphics::TColor ToColor = {read=FToColor, write=SetToColor, default=65535};
- __property System::AnsiString Version = {read=GetVersion, write=SetVersion, stored=false};
-
- public:
- __fastcall virtual TEsCustomGradient(Classes::TComponent* AComponent);
- __fastcall virtual ~TEsCustomGradient(void);
- void __fastcall PaintTo(int DC, const Windows::TRect &R);
- };
-
- class DELPHICLASS TEsGradient;
- class PASCALIMPLEMENTATION TEsGradient : public Esgrad::TEsCustomGradient
- {
- typedef Esgrad::TEsCustomGradient inherited;
-
- __published:
- __property Align ;
- __property ColorBands ;
- __property Direction ;
- __property FromColor ;
- __property ToColor ;
- __property Version ;
- __property OnClick ;
- __property OnDblClick ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property OnStartDrag ;
- public:
- /* TEsCustomGradient.Create */ __fastcall virtual TEsGradient(Classes::TComponent* AComponent) : Esgrad::
- TEsCustomGradient(AComponent) { }
- /* TEsCustomGradient.Destroy */ __fastcall virtual ~TEsGradient(void) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
- #define MinColorBands (Byte)(2)
- #define MaxColorBands (Word)(256)
-
- } /* namespace Esgrad */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Esgrad;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // EsGrad
-