home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / Essentials / SETUP.EXE / %MAINDIR% / EsDbEd.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-11-28  |  9.4 KB  |  276 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) 'EsDbEd.pas' rev: 3.00
  6.  
  7. #ifndef EsDbEdHPP
  8. #define EsDbEdHPP
  9. #include <EsEdPop.hpp>
  10. #include <EsEdCalc.hpp>
  11. #include <EsEdCal.hpp>
  12. #include <EsCalc.hpp>
  13. #include <EsCal.hpp>
  14. #include <EsBase.hpp>
  15. #include <StdCtrls.hpp>
  16. #include <Messages.hpp>
  17. #include <Menus.hpp>
  18. #include <Graphics.hpp>
  19. #include <Forms.hpp>
  20. #include <DBTables.hpp>
  21. #include <DBCtrls.hpp>
  22. #include <Db.hpp>
  23. #include <Controls.hpp>
  24. #include <Classes.hpp>
  25. #include <Windows.hpp>
  26. #include <SysInit.hpp>
  27. #include <System.hpp>
  28.  
  29. //-- user supplied -----------------------------------------------------------
  30.  
  31. namespace Esdbed
  32. {
  33. //-- type declarations -------------------------------------------------------
  34. class DELPHICLASS TEsCustomDbNumberEdit;
  35. class PASCALIMPLEMENTATION TEsCustomDbNumberEdit : public Esedcalc::TEsCustomNumberEdit 
  36. {
  37.     typedef Esedcalc::TEsCustomNumberEdit inherited;
  38.     
  39. protected:
  40.     TAlignment FAlignment;
  41.     Controls::TControlCanvas* FCanvas;
  42.     Dbctrls::TFieldDataLink* FDataLink;
  43.     bool FFocused;
  44.     System::AnsiString __fastcall GetDataField();
  45.     Db::TDataSource* __fastcall GetDataSource(void);
  46.     Db::TField* __fastcall GetField(void);
  47.     HIDESBASE bool __fastcall GetReadOnly(void);
  48.     void __fastcall SetDataField(const System::AnsiString Value);
  49.     void __fastcall SetDataSource(Db::TDataSource* Value);
  50.     void __fastcall SetFocused(bool Value);
  51.     HIDESBASE void __fastcall SetReadOnly(bool Value);
  52.     void __fastcall DataChange(System::TObject* Sender);
  53.     void __fastcall EditingChange(System::TObject* Sender);
  54.     tagPOINT __fastcall GetTextMargins();
  55.     void __fastcall UpdateData(System::TObject* Sender);
  56.     MESSAGE void __fastcall WMCut(Messages::TMessage &Message);
  57.     MESSAGE void __fastcall WMPaste(Messages::TMessage &Message);
  58.     HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
  59.     HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
  60.     HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
  61.     MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
  62.     DYNAMIC void __fastcall Change(void);
  63.     DYNAMIC bool __fastcall GetButtonEnabled(void);
  64.     DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
  65.     DYNAMIC void __fastcall KeyPress(char &Key);
  66.     virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
  67.         );
  68.     DYNAMIC void __fastcall PopupClose(System::TObject* Sender);
  69.     __property System::AnsiString DataField = {read=GetDataField, write=SetDataField};
  70.     __property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
  71.     __property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};
  72.     
  73. public:
  74.     __fastcall virtual TEsCustomDbNumberEdit(Classes::TComponent* AOwner);
  75.     __fastcall virtual ~TEsCustomDbNumberEdit(void);
  76.     DYNAMIC void __fastcall PopupOpen(void);
  77.     __property Db::TField* Field = {read=GetField};
  78. public:
  79.     /* TWinControl.CreateParented */ __fastcall TEsCustomDbNumberEdit(HWND ParentWindow) : Esedcalc::TEsCustomNumberEdit(
  80.         ParentWindow) { }
  81.     
  82. };
  83.  
  84. class DELPHICLASS TEsDbNumberEdit;
  85. class PASCALIMPLEMENTATION TEsDbNumberEdit : public Esdbed::TEsCustomDbNumberEdit 
  86. {
  87.     typedef Esdbed::TEsCustomDbNumberEdit inherited;
  88.     
  89. __published:
  90.     __property AllowIncDec ;
  91.     __property AutoSelect ;
  92.     __property AutoSize ;
  93.     __property BorderStyle ;
  94.     __property Color ;
  95.     __property Ctl3D ;
  96.     __property Cursor ;
  97.     __property DataField ;
  98.     __property DataSource ;
  99.     __property DragCursor ;
  100.     __property DragMode ;
  101.     __property Enabled ;
  102.     __property EsLabelInfo ;
  103.     __property Font ;
  104.     __property HideSelection ;
  105.     __property ParentColor ;
  106.     __property ParentCtl3D ;
  107.     __property ParentFont ;
  108.     __property ParentShowHint ;
  109.     __property PopupCalcColors ;
  110.     __property PopupCalcHeight ;
  111.     __property PopupCalcFont ;
  112.     __property PopupCalcWidth ;
  113.     __property PopupMenu ;
  114.     __property ReadOnly ;
  115.     __property ShowButton ;
  116.     __property ShowHint ;
  117.     __property TabOrder ;
  118.     __property TabStop ;
  119.     __property Version ;
  120.     __property Visible ;
  121.     __property OnChange ;
  122.     __property OnClick ;
  123.     __property OnDblClick ;
  124.     __property OnDragDrop ;
  125.     __property OnDragOver ;
  126.     __property OnEndDrag ;
  127.     __property OnEnter ;
  128.     __property OnExit ;
  129.     __property OnKeyDown ;
  130.     __property OnKeyPress ;
  131.     __property OnKeyUp ;
  132.     __property OnMouseDown ;
  133.     __property OnMouseMove ;
  134.     __property OnMouseUp ;
  135.     __property OnStartDrag ;
  136. public:
  137.     /* TEsCustomDbNumberEdit.Create */ __fastcall virtual TEsDbNumberEdit(Classes::TComponent* AOwner) : 
  138.         Esdbed::TEsCustomDbNumberEdit(AOwner) { }
  139.     /* TEsCustomDbNumberEdit.Destroy */ __fastcall virtual ~TEsDbNumberEdit(void) { }
  140.     
  141. public:
  142.     /* TWinControl.CreateParented */ __fastcall TEsDbNumberEdit(HWND ParentWindow) : Esdbed::TEsCustomDbNumberEdit(
  143.         ParentWindow) { }
  144.     
  145. };
  146.  
  147. class DELPHICLASS TEsCustomDbDateEdit;
  148. class PASCALIMPLEMENTATION TEsCustomDbDateEdit : public Esedcal::TEsCustomDateEdit 
  149. {
  150.     typedef Esedcal::TEsCustomDateEdit inherited;
  151.     
  152. protected:
  153.     TAlignment FAlignment;
  154.     Controls::TControlCanvas* FCanvas;
  155.     Dbctrls::TFieldDataLink* FDataLink;
  156.     bool FFocused;
  157.     System::AnsiString __fastcall GetDataField();
  158.     Db::TDataSource* __fastcall GetDataSource(void);
  159.     Db::TField* __fastcall GetField(void);
  160.     HIDESBASE bool __fastcall GetReadOnly(void);
  161.     void __fastcall SetDataField(const System::AnsiString Value);
  162.     void __fastcall SetDataSource(Db::TDataSource* Value);
  163.     void __fastcall SetFocused(bool Value);
  164.     HIDESBASE void __fastcall SetReadOnly(bool Value);
  165.     void __fastcall DataChange(System::TObject* Sender);
  166.     void __fastcall EditingChange(System::TObject* Sender);
  167.     tagPOINT __fastcall GetTextMargins();
  168.     void __fastcall UpdateData(System::TObject* Sender);
  169.     MESSAGE void __fastcall WMCut(Messages::TMessage &Message);
  170.     MESSAGE void __fastcall WMPaste(Messages::TMessage &Message);
  171.     HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
  172.     HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
  173.     HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
  174.     MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
  175.     DYNAMIC void __fastcall Change(void);
  176.     DYNAMIC bool __fastcall GetButtonEnabled(void);
  177.     DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
  178.     DYNAMIC void __fastcall KeyPress(char &Key);
  179.     virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
  180.         );
  181.     DYNAMIC void __fastcall PopupClose(System::TObject* Sender);
  182.     __property System::AnsiString DataField = {read=GetDataField, write=SetDataField};
  183.     __property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
  184.     __property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};
  185.     
  186. public:
  187.     __fastcall virtual TEsCustomDbDateEdit(Classes::TComponent* AOwner);
  188.     __fastcall virtual ~TEsCustomDbDateEdit(void);
  189.     DYNAMIC void __fastcall PopupOpen(void);
  190.     __property Db::TField* Field = {read=GetField};
  191. public:
  192.     /* TWinControl.CreateParented */ __fastcall TEsCustomDbDateEdit(HWND ParentWindow) : Esedcal::TEsCustomDateEdit(
  193.         ParentWindow) { }
  194.     
  195. };
  196.  
  197. class DELPHICLASS TEsDbDateEdit;
  198. class PASCALIMPLEMENTATION TEsDbDateEdit : public Esdbed::TEsCustomDbDateEdit 
  199. {
  200.     typedef Esdbed::TEsCustomDbDateEdit inherited;
  201.     
  202. __published:
  203.     __property AllowIncDec ;
  204.     __property AutoSelect ;
  205.     __property AutoSize ;
  206.     __property BorderStyle ;
  207.     __property CharCase ;
  208.     __property Color ;
  209.     __property Ctl3D ;
  210.     __property Cursor ;
  211.     __property DataField ;
  212.     __property DataSource ;
  213.     __property DragCursor ;
  214.     __property DragMode ;
  215.     __property Enabled ;
  216.     __property Epoch ;
  217.     __property EsLabelInfo ;
  218.     __property Font ;
  219.     __property ForceCentury ;
  220.     __property HideSelection ;
  221.     __property ParentColor ;
  222.     __property ParentCtl3D ;
  223.     __property ParentFont ;
  224.     __property ParentShowHint ;
  225.     __property PopupMenu ;
  226.     __property PopupCalColors ;
  227.     __property PopupCalHeight ;
  228.     __property PopupCalFont ;
  229.     __property PopupCalWidth ;
  230.     __property ReadOnly ;
  231.     __property RequiredFields ;
  232.     __property ShowButton ;
  233.     __property ShowHint ;
  234.     __property TabOrder ;
  235.     __property TabStop ;
  236.     __property TodayString ;
  237.     __property Version ;
  238.     __property Visible ;
  239.     __property WeekStarts ;
  240.     __property OnChange ;
  241.     __property OnClick ;
  242.     __property OnDblClick ;
  243.     __property OnDragDrop ;
  244.     __property OnDragOver ;
  245.     __property OnEndDrag ;
  246.     __property OnEnter ;
  247.     __property OnExit ;
  248.     __property OnKeyDown ;
  249.     __property OnKeyPress ;
  250.     __property OnKeyUp ;
  251.     __property OnMouseDown ;
  252.     __property OnMouseMove ;
  253.     __property OnMouseUp ;
  254.     __property OnStartDrag ;
  255. public:
  256.     /* TEsCustomDbDateEdit.Create */ __fastcall virtual TEsDbDateEdit(Classes::TComponent* AOwner) : Esdbed::
  257.         TEsCustomDbDateEdit(AOwner) { }
  258.     /* TEsCustomDbDateEdit.Destroy */ __fastcall virtual ~TEsDbDateEdit(void) { }
  259.     
  260. public:
  261.     /* TWinControl.CreateParented */ __fastcall TEsDbDateEdit(HWND ParentWindow) : Esdbed::TEsCustomDbDateEdit(
  262.         ParentWindow) { }
  263.     
  264. };
  265.  
  266. //-- var, const, procedure ---------------------------------------------------
  267. extern PACKAGE System::Set<Db::TFieldType, ftUnknown, ftCursor>  NumFieldTypes;
  268. extern PACKAGE System::Set<Db::TFieldType, ftUnknown, ftCursor>  DateFieldTypes;
  269.  
  270. }    /* namespace Esdbed */
  271. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  272. using namespace Esdbed;
  273. #endif
  274. //-- end unit ----------------------------------------------------------------
  275. #endif    // EsDbEd
  276.