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 >
Wrap
C/C++ Source or Header
|
2001-07-31
|
4KB
|
117 lines
// Borland C++ Builder
// Copyright (c) 1995, 1998 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Nedit.pas' rev: 3.00
#ifndef NeditHPP
#define NeditHPP
#include <Graphics.hpp>
#include <Controls.hpp>
#include <Misc.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Windows.hpp>
#include <NoMath.hpp>
#include <SysUtils.hpp>
#include <Classes.hpp>
#include <SysInit.hpp>
#include <System.hpp>
//-- user supplied -----------------------------------------------------------
namespace Nedit
{
//-- type declarations -------------------------------------------------------
enum TNumericType { ntInteger, ntBinary, ntHex, ntFixed, ntCurrency, ntScientific };
enum TDataType { dtInteger, dtCardinal, dtShortint, dtSmallint, dtLongint, dtByte, dtWord, dtReal, dtReal48,
dtSingle, dtDouble, dtExtended, dtComp };
class DELPHICLASS TNEdit;
class PASCALIMPLEMENTATION TNEdit : public Stdctrls::TCustomEdit
{
typedef Stdctrls::TCustomEdit inherited;
private:
TDataType FDataType;
Extended FMin;
Extended FMax;
TNumericType FNumericType;
Extended __fastcall GetReal(void);
int __fastcall GetInteger(void);
void __fastcall SetDataType(TDataType Value);
void __fastcall SetNumericType(TNumericType Value);
void __fastcall SetReal(Extended Value);
void __fastcall SetInteger(int Value);
protected:
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
DYNAMIC void __fastcall DoExit(void);
public:
__fastcall virtual TNEdit(Classes::TComponent* AOwner);
bool __fastcall IsValid(void);
__published:
__property Extended AsReal = {read=GetReal, write=SetReal, stored=false};
__property int AsInteger = {read=GetInteger, write=SetInteger, stored=false, nodefault};
__property TDataType DataType = {read=FDataType, write=SetDataType, nodefault};
__property Extended Min = {read=FMin, write=FMin};
__property Extended Max = {read=FMax, write=FMax};
__property TNumericType NumericType = {read=FNumericType, write=SetNumericType, nodefault};
__property AutoSelect ;
__property AutoSize ;
__property BorderStyle ;
__property CharCase ;
__property Color ;
__property Ctl3D ;
__property DragCursor ;
__property Enabled ;
__property Font ;
__property HideSelection ;
__property MaxLength ;
__property OEMConvert ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PasswordChar ;
__property ReadOnly ;
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Text ;
__property Visible ;
__property OnChange ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
public:
/* TWinControl.CreateParented */ __fastcall TNEdit(HWND ParentWindow) : Stdctrls::TCustomEdit(ParentWindow
) { }
/* TWinControl.Destroy */ __fastcall virtual ~TNEdit(void) { }
};
//-- var, const, procedure ---------------------------------------------------
#define TNEDIT_VERSION (Byte)(100)
extern PACKAGE System::AnsiString NumericTypes[13];
} /* namespace Nedit */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Nedit;
#endif
//-- end unit ----------------------------------------------------------------
#endif // Nedit