home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / Essentials / SETUP.EXE / %MAINDIR% / Eslabel.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-11-28  |  7.6 KB  |  210 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'EsLabel.pas' rev: 3.00
  6.  
  7. #ifndef EsLabelHPP
  8. #define EsLabelHPP
  9. #include <EsUtil.hpp>
  10. #include <EsData.hpp>
  11. #include <EsConst.hpp>
  12. #include <SysUtils.hpp>
  13. #include <StdCtrls.hpp>
  14. #include <Messages.hpp>
  15. #include <Graphics.hpp>
  16. #include <Controls.hpp>
  17. #include <Classes.hpp>
  18. #include <Windows.hpp>
  19. #include <SysInit.hpp>
  20. #include <System.hpp>
  21.  
  22. //-- user supplied -----------------------------------------------------------
  23.  
  24. namespace Eslabel
  25. {
  26. //-- type declarations -------------------------------------------------------
  27. enum TEsAppearance { apNone, apCustom, apFlying, apRaised, apSunken, apShadow };
  28.  
  29. enum TEsColorScheme { csCustom, csText, csWindows, csEmbossed, csGold, csSteel };
  30.  
  31. enum TEsGraduateStyle { gsNone, gsHorizontal, gsVertical };
  32.  
  33. enum TEsShadeDirection { sdNone, sdUp, sdUpRight, sdRight, sdDownRight, sdDown, sdDownLeft, sdLeft, 
  34.     sdUpLeft };
  35.  
  36. enum TEsShadeStyle { ssPlain, ssExtrude, ssGraduated };
  37.  
  38. typedef Byte TEsDepth;
  39.  
  40. class DELPHICLASS TEsCustomSettings;
  41. class PASCALIMPLEMENTATION TEsCustomSettings : public Classes::TPersistent 
  42. {
  43.     typedef Classes::TPersistent inherited;
  44.     
  45. private:
  46.     Graphics::TColor FGraduateFromColor;
  47.     TEsGraduateStyle FGraduateStyle;
  48.     Graphics::TColor FHighlightColor;
  49.     TEsDepth FHighlightDepth;
  50.     TEsShadeDirection FHighlightDirection;
  51.     TEsShadeStyle FHighlightStyle;
  52.     Graphics::TColor FShadowColor;
  53.     TEsDepth FShadowDepth;
  54.     TEsShadeDirection FShadowDirection;
  55.     TEsShadeStyle FShadowStyle;
  56.     Classes::TNotifyEvent FOnColorChange;
  57.     Classes::TNotifyEvent FOnStyleChange;
  58.     bool FUpdating;
  59.     void __fastcall DoOnColorChange(void);
  60.     void __fastcall DoOnStyleChange(void);
  61.     void __fastcall SetGraduateFromColor(Graphics::TColor Value);
  62.     void __fastcall SetGraduateStyle(TEsGraduateStyle Value);
  63.     void __fastcall SetHighlightColor(Graphics::TColor Value);
  64.     void __fastcall SetHighlightDepth(TEsDepth Value);
  65.     void __fastcall SetHighlightDirection(TEsShadeDirection Value);
  66.     void __fastcall SetHighlightStyle(TEsShadeStyle Value);
  67.     void __fastcall SetShadowColor(Graphics::TColor Value);
  68.     void __fastcall SetShadowDepth(TEsDepth Value);
  69.     void __fastcall SetShadowDirection(TEsShadeDirection Value);
  70.     void __fastcall SetShadowStyle(TEsShadeStyle Value);
  71.     
  72. public:
  73.     virtual void __fastcall Assign(Classes::TPersistent* Source);
  74.     void __fastcall BeginUpdate(void);
  75.     void __fastcall EndUpdate(void);
  76.     __property Classes::TNotifyEvent OnColorChange = {read=FOnColorChange, write=FOnColorChange};
  77.     __property Classes::TNotifyEvent OnStyleChange = {read=FOnStyleChange, write=FOnStyleChange};
  78.     
  79. __published:
  80.     __property Graphics::TColor GraduateFromColor = {read=FGraduateFromColor, write=SetGraduateFromColor
  81.         , default=8421504};
  82.     __property TEsGraduateStyle GraduateStyle = {read=FGraduateStyle, write=SetGraduateStyle, default=0
  83.         };
  84.     __property Graphics::TColor HighlightColor = {read=FHighlightColor, write=SetHighlightColor, default=16777215
  85.         };
  86.     __property TEsDepth HighlightDepth = {read=FHighlightDepth, write=SetHighlightDepth, default=1};
  87.     __property TEsShadeDirection HighlightDirection = {read=FHighlightDirection, write=SetHighlightDirection
  88.         , default=8};
  89.     __property TEsShadeStyle HighlightStyle = {read=FHighlightStyle, write=SetHighlightStyle, default=0
  90.         };
  91.     __property Graphics::TColor ShadowColor = {read=FShadowColor, write=SetShadowColor, default=0};
  92.     __property TEsDepth ShadowDepth = {read=FShadowDepth, write=SetShadowDepth, default=1};
  93.     __property TEsShadeDirection ShadowDirection = {read=FShadowDirection, write=SetShadowDirection, default=4
  94.         };
  95.     __property TEsShadeStyle ShadowStyle = {read=FShadowStyle, write=SetShadowStyle, default=0};
  96. public:
  97.         
  98.     /* TPersistent.Destroy */ __fastcall virtual ~TEsCustomSettings(void) { }
  99.     
  100. public:
  101.     /* TObject.Create */ __fastcall TEsCustomSettings(void) : Classes::TPersistent() { }
  102.     
  103. };
  104.  
  105. enum EsLabel__3 { cpHighlight, cpShadow, cpFace };
  106.  
  107. class DELPHICLASS TEsCustomLabel;
  108. class PASCALIMPLEMENTATION TEsCustomLabel : public Stdctrls::TCustomLabel 
  109. {
  110.     typedef Stdctrls::TCustomLabel inherited;
  111.     
  112. protected:
  113.     TEsAppearance FAppearance;
  114.     TEsColorScheme FColorScheme;
  115.     TEsCustomSettings* FCustomSettings;
  116.     Graphics::TColor eslSchemes[6][3];
  117.     bool SettingColorScheme;
  118.     bool SettingAppearance;
  119.     System::AnsiString __fastcall GetVersion();
  120.     bool __fastcall GetWordWrap(void);
  121.     void __fastcall SetAppearance(TEsAppearance Value);
  122.     void __fastcall SetColorScheme(TEsColorScheme Value);
  123.     HIDESBASE void __fastcall SetWordWrap(bool Value);
  124.     void __fastcall SetVersion(const System::AnsiString Value);
  125.     void __fastcall PaintPrim(const Windows::TRect &CR, Word Flags);
  126.     void __fastcall ColorChanged(System::TObject* Sender);
  127.     void __fastcall StyleChanged(System::TObject* Sender);
  128.     virtual void __fastcall Paint(void);
  129.     __property TEsAppearance Appearance = {read=FAppearance, write=SetAppearance, default=3};
  130.     __property TEsColorScheme ColorScheme = {read=FColorScheme, write=SetColorScheme, default=2};
  131.     __property TEsCustomSettings* CustomSettings = {read=FCustomSettings, write=FCustomSettings};
  132.     __property System::AnsiString Version = {read=GetVersion, write=SetVersion, stored=false};
  133.     __property bool WordWrap = {read=GetWordWrap, write=SetWordWrap, default=1};
  134.     
  135. public:
  136.     __fastcall virtual TEsCustomLabel(Classes::TComponent* AOwner);
  137.     __fastcall virtual ~TEsCustomLabel(void);
  138.     void __fastcall PaintTo(int DC, const Windows::TRect &CR, Word Flags);
  139.     __property AutoSize ;
  140. };
  141.  
  142. class DELPHICLASS TEsLabel;
  143. class PASCALIMPLEMENTATION TEsLabel : public Eslabel::TEsCustomLabel 
  144. {
  145.     typedef Eslabel::TEsCustomLabel inherited;
  146.     
  147. __published:
  148.     __property Align ;
  149.     __property Alignment ;
  150.     __property Appearance ;
  151.     __property Caption ;
  152.     __property Color ;
  153.     __property ColorScheme ;
  154.     __property Cursor ;
  155.     __property CustomSettings ;
  156.     __property DragCursor ;
  157.     __property DragMode ;
  158.     __property Enabled ;
  159.     __property FocusControl ;
  160.     __property Font ;
  161.     __property ParentColor ;
  162.     __property ParentFont ;
  163.     __property ParentShowHint ;
  164.     __property ShowAccelChar ;
  165.     __property ShowHint ;
  166.     __property Transparent ;
  167.     __property Version ;
  168.     __property Visible ;
  169.     __property WordWrap ;
  170.     __property OnClick ;
  171.     __property OnDblClick ;
  172.     __property OnDragDrop ;
  173.     __property OnDragOver ;
  174.     __property OnEndDrag ;
  175.     __property OnMouseDown ;
  176.     __property OnMouseMove ;
  177.     __property OnMouseUp ;
  178. public:
  179.     /* TEsCustomLabel.Create */ __fastcall virtual TEsLabel(Classes::TComponent* AOwner) : Eslabel::TEsCustomLabel(
  180.         AOwner) { }
  181.     /* TEsCustomLabel.Destroy */ __fastcall virtual ~TEsLabel(void) { }
  182.     
  183. };
  184.  
  185. //-- var, const, procedure ---------------------------------------------------
  186. #define lblDefAppearance (TEsAppearance)(3)
  187. #define lblDefAutoSize (bool)(0)
  188. #define lblDefColorScheme (TEsColorScheme)(2)
  189. #define lblDefFontName "Times New Roman"
  190. #define lblDefFontSize (Byte)(20)
  191. #define lblDefGraduateFromColor (int)(8421504)
  192. #define lblDefGraduateStyle (TEsGraduateStyle)(0)
  193. #define lblDefHighlightColor (int)(16777215)
  194. #define lblDefHighlightDepth (Byte)(1)
  195. #define lblDefHighlightDirection (TEsShadeDirection)(8)
  196. #define lblDefHighlightStyle (TEsShadeStyle)(0)
  197. #define lblDefShadowColor (int)(0)
  198. #define lblDefShadowDepth (Byte)(1)
  199. #define lblDefShadowDirection (TEsShadeDirection)(4)
  200. #define lblDefShadowStyle (TEsShadeStyle)(0)
  201. #define lblDefTransparent (bool)(1)
  202. #define lblDefWordWrap (bool)(1)
  203.  
  204. }    /* namespace Eslabel */
  205. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  206. using namespace Eslabel;
  207. #endif
  208. //-- end unit ----------------------------------------------------------------
  209. #endif    // EsLabel
  210.