home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 October / Chip_2001-10_cd1.bin / zkuste / delphi / kompon / d123456 / CHEMPLOT.ZIP / Misc / Nedit.hpp < prev    next >
C/C++ Source or Header  |  2001-07-31  |  4KB  |  117 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) 'Nedit.pas' rev: 3.00
  6.  
  7. #ifndef NeditHPP
  8. #define NeditHPP
  9. #include <Graphics.hpp>
  10. #include <Controls.hpp>
  11. #include <Misc.hpp>
  12. #include <StdCtrls.hpp>
  13. #include <Forms.hpp>
  14. #include <Windows.hpp>
  15. #include <NoMath.hpp>
  16. #include <SysUtils.hpp>
  17. #include <Classes.hpp>
  18. #include <SysInit.hpp>
  19. #include <System.hpp>
  20.  
  21. //-- user supplied -----------------------------------------------------------
  22.  
  23. namespace Nedit
  24. {
  25. //-- type declarations -------------------------------------------------------
  26. enum TNumericType { ntInteger, ntBinary, ntHex, ntFixed, ntCurrency, ntScientific };
  27.  
  28. enum TDataType { dtInteger, dtCardinal, dtShortint, dtSmallint, dtLongint, dtByte, dtWord, dtReal, dtReal48, 
  29.     dtSingle, dtDouble, dtExtended, dtComp };
  30.  
  31. class DELPHICLASS TNEdit;
  32. class PASCALIMPLEMENTATION TNEdit : public Stdctrls::TCustomEdit 
  33. {
  34.     typedef Stdctrls::TCustomEdit inherited;
  35.     
  36. private:
  37.     TDataType FDataType;
  38.     Extended FMin;
  39.     Extended FMax;
  40.     TNumericType FNumericType;
  41.     Extended __fastcall GetReal(void);
  42.     int __fastcall GetInteger(void);
  43.     void __fastcall SetDataType(TDataType Value);
  44.     void __fastcall SetNumericType(TNumericType Value);
  45.     void __fastcall SetReal(Extended Value);
  46.     void __fastcall SetInteger(int Value);
  47.     
  48. protected:
  49.     DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
  50.     DYNAMIC void __fastcall DoExit(void);
  51.     
  52. public:
  53.     __fastcall virtual TNEdit(Classes::TComponent* AOwner);
  54.     bool __fastcall IsValid(void);
  55.     
  56. __published:
  57.     __property Extended AsReal = {read=GetReal, write=SetReal, stored=false};
  58.     __property int AsInteger = {read=GetInteger, write=SetInteger, stored=false, nodefault};
  59.     __property TDataType DataType = {read=FDataType, write=SetDataType, nodefault};
  60.     __property Extended Min = {read=FMin, write=FMin};
  61.     __property Extended Max = {read=FMax, write=FMax};
  62.     __property TNumericType NumericType = {read=FNumericType, write=SetNumericType, nodefault};
  63.     __property AutoSelect ;
  64.     __property AutoSize ;
  65.     __property BorderStyle ;
  66.     __property CharCase ;
  67.     __property Color ;
  68.     __property Ctl3D ;
  69.     __property DragCursor ;
  70.     __property Enabled ;
  71.     __property Font ;
  72.     __property HideSelection ;
  73.     __property MaxLength ;
  74.     __property OEMConvert ;
  75.     __property ParentColor ;
  76.     __property ParentCtl3D ;
  77.     __property ParentFont ;
  78.     __property ParentShowHint ;
  79.     __property PasswordChar ;
  80.     __property ReadOnly ;
  81.     __property ShowHint ;
  82.     __property TabOrder ;
  83.     __property TabStop ;
  84.     __property Text ;
  85.     __property Visible ;
  86.     __property OnChange ;
  87.     __property OnClick ;
  88.     __property OnDblClick ;
  89.     __property OnDragDrop ;
  90.     __property OnDragOver ;
  91.     __property OnEndDrag ;
  92.     __property OnEnter ;
  93.     __property OnExit ;
  94.     __property OnKeyDown ;
  95.     __property OnKeyPress ;
  96.     __property OnKeyUp ;
  97.     __property OnMouseDown ;
  98.     __property OnMouseMove ;
  99.     __property OnMouseUp ;
  100. public:
  101.     /* TWinControl.CreateParented */ __fastcall TNEdit(HWND ParentWindow) : Stdctrls::TCustomEdit(ParentWindow
  102.         ) { }
  103.     /* TWinControl.Destroy */ __fastcall virtual ~TNEdit(void) { }
  104.     
  105. };
  106.  
  107. //-- var, const, procedure ---------------------------------------------------
  108. #define TNEDIT_VERSION (Byte)(100)
  109. extern PACKAGE System::AnsiString NumericTypes[13];
  110.  
  111. }    /* namespace Nedit */
  112. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  113. using namespace Nedit;
  114. #endif
  115. //-- end unit ----------------------------------------------------------------
  116. #endif    // Nedit
  117.