home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 October
/
Chip_2001-10_cd1.bin
/
zkuste
/
delphi
/
kompon
/
d123456
/
CHEMPLOT.ZIP
/
Misc
/
Vedit.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
2001-07-31
|
4KB
|
132 lines
// Borland C++ Builder
// Copyright (c) 1995, 1998 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Vedit.pas' rev: 3.00
#ifndef VeditHPP
#define VeditHPP
#include <Graphics.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Windows.hpp>
#include <SysUtils.hpp>
#include <Classes.hpp>
#include <Misc.hpp>
#include <SysInit.hpp>
#include <System.hpp>
//-- user supplied -----------------------------------------------------------
namespace Vedit
{
//-- type declarations -------------------------------------------------------
enum TDisplayType { dtInteger, dtBinary, dtHex, dtReal };
class DELPHICLASS TVEdit;
class PASCALIMPLEMENTATION TVEdit : public Stdctrls::TCustomEdit
{
typedef Stdctrls::TCustomEdit inherited;
private:
TDisplayType FDisplayType;
Byte FDecimals;
TFloatFormat FFloatFormat;
Extended FMin;
Extended FMax;
Extended FValue;
Classes::TNotifyEvent FOnAssignment;
Classes::TNotifyEvent FOnDisplayTypeChange;
System::AnsiString __fastcall GetBinary();
System::AnsiString __fastcall GetHexadecimal();
int __fastcall GetInteger(void);
void __fastcall SetDecimals(Byte Value);
void __fastcall SetFloatFormat(Sysutils::TFloatFormat Value);
void __fastcall SetDisplayType(TDisplayType Value);
void __fastcall SetBinary(System::AnsiString Value);
void __fastcall SetHexadecimal(System::AnsiString Value);
void __fastcall SetInteger(int Value);
void __fastcall SetReal(Extended Value);
protected:
DYNAMIC void __fastcall KeyPress(char &Key);
DYNAMIC void __fastcall KeyUp(Word &Key, Classes::TShiftState Shift);
virtual void __fastcall DoAssignment(void);
virtual void __fastcall DoDisplayTypeChange(void);
DYNAMIC void __fastcall DoExit(void);
virtual void __fastcall DoText(void);
virtual void __fastcall DoValue(void);
public:
__fastcall virtual TVEdit(Classes::TComponent* AOwner);
virtual bool __fastcall KeyOK(char Key);
__published:
__property System::AnsiString AsBinary = {read=GetBinary, write=SetBinary, stored=false};
__property System::AnsiString AsHex = {read=GetHexadecimal, write=SetHexadecimal, stored=false};
__property Extended AsReal = {read=FValue, write=SetReal, stored=false};
__property int AsInteger = {read=GetInteger, write=SetInteger, stored=false, nodefault};
__property Byte Decimals = {read=FDecimals, write=SetDecimals, nodefault};
__property Sysutils::TFloatFormat FloatFormat = {read=FFloatFormat, write=SetFloatFormat, nodefault
};
__property Extended Min = {read=FMin, write=FMin};
__property Extended Max = {read=FMax, write=FMax};
__property TDisplayType DisplayType = {read=FDisplayType, write=SetDisplayType, nodefault};
__property Classes::TNotifyEvent OnAssignment = {read=FOnAssignment, write=FOnAssignment};
__property Classes::TNotifyEvent OnDisplayTypeChange = {read=FOnDisplayTypeChange, write=FOnDisplayTypeChange
};
__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 TVEdit(HWND ParentWindow) : Stdctrls::TCustomEdit(ParentWindow
) { }
/* TWinControl.Destroy */ __fastcall virtual ~TVEdit(void) { }
};
//-- var, const, procedure ---------------------------------------------------
#define TVEdit_VERSION (Byte)(100)
} /* namespace Vedit */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Vedit;
#endif
//-- end unit ----------------------------------------------------------------
#endif // Vedit