home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / Essentials / SETUP.EXE / %MAINDIR% / esedcalc.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-11-28  |  5.2 KB  |  153 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) 'EsEdCalc.pas' rev: 3.00
  6.  
  7. #ifndef EsEdCalcHPP
  8. #define EsEdCalcHPP
  9. #include <EsEdPop.hpp>
  10. #include <EsConst.hpp>
  11. #include <EsCalc.hpp>
  12. #include <EsBase.hpp>
  13. #include <SysUtils.hpp>
  14. #include <StdCtrls.hpp>
  15. #include <Messages.hpp>
  16. #include <Menus.hpp>
  17. #include <Graphics.hpp>
  18. #include <Forms.hpp>
  19. #include <Controls.hpp>
  20. #include <Classes.hpp>
  21. #include <Buttons.hpp>
  22. #include <Windows.hpp>
  23. #include <SysInit.hpp>
  24. #include <System.hpp>
  25.  
  26. //-- user supplied -----------------------------------------------------------
  27.  
  28. namespace Esedcalc
  29. {
  30. //-- type declarations -------------------------------------------------------
  31. class DELPHICLASS TEsCustomNumberEdit;
  32. class PASCALIMPLEMENTATION TEsCustomNumberEdit : public Esedpop::TEsEdPopup 
  33. {
  34.     typedef Esedpop::TEsEdPopup inherited;
  35.     
  36. protected:
  37.     bool FAllowIncDec;
  38.     Escalc::TEsCalcColors* FPopupCalcColors;
  39.     Graphics::TFont* FPopupCalcFont;
  40.     int FPopupCalcHeight;
  41.     int FPopupCalcWidth;
  42.     Escalc::TEsCalculator* Calculator;
  43.     Controls::TCursor HoldCursor;
  44.     bool WasAutoScroll;
  45.     double __fastcall GetAsFloat(void);
  46.     int __fastcall GetAsInteger(void);
  47.     System::AnsiString __fastcall GetAsString();
  48.     void __fastcall SetAsFloat(double Value);
  49.     void __fastcall SetAsInteger(int Value);
  50.     void __fastcall SetAsString(const System::AnsiString Value);
  51.     bool __fastcall GetReadOnly(void);
  52.     void __fastcall SetPopupCalcFont(Graphics::TFont* Value);
  53.     HIDESBASE void __fastcall SetReadOnly(bool Value);
  54.     void __fastcall PopupButtonPressed(System::TObject* Sender, Escalc::TEsCalculatorButton Button);
  55.     void __fastcall PopupKeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
  56.     void __fastcall PopupKeyPress(System::TObject* Sender, char &Key);
  57.     void __fastcall PopupMouseDown(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState 
  58.         Shift, int X, int Y);
  59.     DYNAMIC void __fastcall DoExit(void);
  60.     DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
  61.     DYNAMIC void __fastcall KeyPress(char &Key);
  62.     DYNAMIC void __fastcall PopupClose(System::TObject* Sender);
  63.     __property bool AllowIncDec = {read=FAllowIncDec, write=FAllowIncDec, default=0};
  64.     __property Escalc::TEsCalcColors* PopupCalcColors = {read=FPopupCalcColors, write=FPopupCalcColors}
  65.         ;
  66.     __property Graphics::TFont* PopupCalcFont = {read=FPopupCalcFont, write=SetPopupCalcFont};
  67.     __property int PopupCalcHeight = {read=FPopupCalcHeight, write=FPopupCalcHeight, default=140};
  68.     __property int PopupCalcWidth = {read=FPopupCalcWidth, write=FPopupCalcWidth, default=200};
  69.     __property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, nodefault};
  70.     
  71. public:
  72.     __fastcall virtual TEsCustomNumberEdit(Classes::TComponent* AOwner);
  73.     __fastcall virtual ~TEsCustomNumberEdit(void);
  74.     DYNAMIC void __fastcall PopupOpen(void);
  75.     __property int AsInteger = {read=GetAsInteger, write=SetAsInteger, nodefault};
  76.     __property double AsFloat = {read=GetAsFloat, write=SetAsFloat};
  77.     __property System::AnsiString AsString = {read=GetAsString, write=SetAsString};
  78. public:
  79.     /* TWinControl.CreateParented */ __fastcall TEsCustomNumberEdit(HWND ParentWindow) : Esedpop::TEsEdPopup(
  80.         ParentWindow) { }
  81.     
  82. };
  83.  
  84. class DELPHICLASS TEsNumberEdit;
  85. class PASCALIMPLEMENTATION TEsNumberEdit : public Esedcalc::TEsCustomNumberEdit 
  86. {
  87.     typedef Esedcalc::TEsCustomNumberEdit 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 DragCursor ;
  98.     __property DragMode ;
  99.     __property Enabled ;
  100.     __property EsLabelInfo ;
  101.     __property Font ;
  102.     __property HideSelection ;
  103.     __property ParentColor ;
  104.     __property ParentCtl3D ;
  105.     __property ParentFont ;
  106.     __property ParentShowHint ;
  107.     __property PopupCalcColors ;
  108.     __property PopupCalcFont ;
  109.     __property PopupCalcHeight ;
  110.     __property PopupCalcWidth ;
  111.     __property PopupMenu ;
  112.     __property ReadOnly ;
  113.     __property ShowHint ;
  114.     __property ShowButton ;
  115.     __property TabOrder ;
  116.     __property TabStop ;
  117.     __property Version ;
  118.     __property Visible ;
  119.     __property OnChange ;
  120.     __property OnClick ;
  121.     __property OnDblClick ;
  122.     __property OnDragDrop ;
  123.     __property OnDragOver ;
  124.     __property OnEndDrag ;
  125.     __property OnEnter ;
  126.     __property OnExit ;
  127.     __property OnKeyDown ;
  128.     __property OnKeyPress ;
  129.     __property OnKeyUp ;
  130.     __property OnMouseDown ;
  131.     __property OnMouseMove ;
  132.     __property OnMouseUp ;
  133.     __property OnStartDrag ;
  134. public:
  135.     /* TEsCustomNumberEdit.Create */ __fastcall virtual TEsNumberEdit(Classes::TComponent* AOwner) : Esedcalc::
  136.         TEsCustomNumberEdit(AOwner) { }
  137.     /* TEsCustomNumberEdit.Destroy */ __fastcall virtual ~TEsNumberEdit(void) { }
  138.     
  139. public:
  140.     /* TWinControl.CreateParented */ __fastcall TEsNumberEdit(HWND ParentWindow) : Esedcalc::TEsCustomNumberEdit(
  141.         ParentWindow) { }
  142.     
  143. };
  144.  
  145. //-- var, const, procedure ---------------------------------------------------
  146.  
  147. }    /* namespace Esedcalc */
  148. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  149. using namespace Esedcalc;
  150. #endif
  151. //-- end unit ----------------------------------------------------------------
  152. #endif    // EsEdCalc
  153.