// Borland C++ Builder
// Copyright (c) 1995, 1998 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'AHMTRealSpinEdit.pas' rev: 3.00

#ifndef AHMTRealSpinEditHPP
#define AHMTRealSpinEditHPP
#include <Mask.hpp>
#include <AHMStdClass.hpp>
#include <AHMTLookupEdit.hpp>
#include <StdCtrls.hpp>
#include <Dialogs.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Graphics.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <Messages.hpp>
#include <Menus.hpp>
#include <Windows.hpp>
#include <SysInit.hpp>
#include <System.hpp>

//-- user supplied -----------------------------------------------------------

namespace Ahmtrealspinedit
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TAHMRealSpinEdit;
class PASCALIMPLEMENTATION TAHMRealSpinEdit : public Ahmtlookupedit::TAHMCustomLookupEdit 
{
	typedef Ahmtlookupedit::TAHMCustomLookupEdit inherited;
	
private:
	double FSmallStep;
	double FBigStep;
	TAlignment FAlignment;
	Shortint FDecimals;
	Classes::TNotifyEvent FInvalidEntry;
	Classes::TNotifyEvent FValidChange;
	double FMaxValue;
	double FMinValue;
	System::AnsiString FormatMask;
	void __fastcall IncNumber(System::TObject* Sender);
	void __fastcall DecNumber(System::TObject* Sender);
	void __fastcall SetAsCurrency(System::Currency Value);
	HIDESBASE void __fastcall SetAlignment(Classes::TAlignment Value);
	void __fastcall SetAsFloat(double Value);
	void __fastcall SetAsInteger(int Value);
	void __fastcall SetDecimals(Shortint Value);
	void __fastcall SetMaxValue(double xValue);
	void __fastcall SetMinValue(double xValue);
	void __fastcall SetValue(double Value);
	void __fastcall DeleteKey(Word Key);
	HIDESBASE void __fastcall DeleteSelection(void);
	void __fastcall InvalidEntry(void);
	void __fastcall SetFormatMask(void);
	HIDESBASE MESSAGE void __fastcall WMCut(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall WMPaste(Messages::TMessage &Message);
	System::Currency __fastcall GetAsCurrency(void);
	double __fastcall GetAsFloat(void);
	int __fastcall GetAsInteger(void);
	double __fastcall GetValue(void);
	
protected:
	DYNAMIC void __fastcall Change(void);
	DYNAMIC void __fastcall DoEnter(void);
	DYNAMIC void __fastcall DoExit(void);
	
public:
	DYNAMIC void __fastcall KeyPress(char &Key);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	__fastcall virtual TAHMRealSpinEdit(Classes::TComponent* AOwner);
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	__property System::Currency AsCurrency = {read=GetAsCurrency, write=SetAsCurrency};
	__property double AsFloat = {read=GetAsFloat, write=SetAsFloat};
	__property int AsInteger = {read=GetAsInteger, write=SetAsInteger, nodefault};
	
__published:
	__property AutoSelect ;
	__property AutoSize ;
	__property BorderStyle ;
	__property Color ;
	__property Ctl3D ;
	__property DragCursor ;
	__property DragMode ;
	__property Enabled ;
	__property Font ;
	__property HideSelection ;
	__property MaxLength ;
	__property ParentColor ;
	__property ParentCtl3D ;
	__property ParentFont ;
	__property ParentShowHint ;
	__property PopupMenu ;
	__property ReadOnly ;
	__property ShowHint ;
	__property TabOrder ;
	__property TabStop ;
	__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 ;
	__property OnStartDrag ;
	__property double StepSmall = {read=FSmallStep, write=FSmallStep};
	__property double StepBig = {read=FBigStep, write=FBigStep};
	__property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, default=1};
	__property Shortint Decimals = {read=FDecimals, write=SetDecimals, default=2};
	__property double MaxValue = {read=FMaxValue, write=SetMaxValue};
	__property double MinValue = {read=FMinValue, write=SetMinValue};
	__property double Value = {read=GetValue, write=SetValue, stored=true};
	__property Classes::TNotifyEvent OnInvalidEntry = {read=FInvalidEntry, write=FInvalidEntry};
	__property Classes::TNotifyEvent OnValidChange = {read=FValidChange, write=FValidChange};
public:
	/* TAHMCustomLookupEdit.Destroy */ __fastcall virtual ~TAHMRealSpinEdit(void) { }
	
public:
	/* TWinControl.CreateParented */ __fastcall TAHMRealSpinEdit(HWND ParentWindow) : Ahmtlookupedit::TAHMCustomLookupEdit(
		ParentWindow) { }
	
};

//-- var, const, procedure ---------------------------------------------------

}	/* namespace Ahmtrealspinedit */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Ahmtrealspinedit;
#endif
//-- end unit ----------------------------------------------------------------
#endif	// AHMTRealSpinEdit
