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

// (DO NOT EDIT: machine generated header) 'AHMTDBSpinEdit.pas' rev: 4.00

#ifndef AHMTDBSpinEditHPP
#define AHMTDBSpinEditHPP

#pragma delphiheader begin
#pragma option push -w-
#include <Menus.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <Mask.hpp>	// Pascal unit
#include <AHMStdClass.hpp>	// Pascal unit
#include <AHMTSpinEdit.hpp>	// Pascal unit
#include <Db.hpp>	// Pascal unit
#include <DBCtrls.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Ahmtdbspinedit
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TAHMDBCustomSpinEdit;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TAHMDBCustomSpinEdit : public Dbctrls::TDBEdit 
{
	typedef Dbctrls::TDBEdit inherited;
	
private:
	Ahmstdclass::TAHMAboutSControlStr FAboutStr;
	int FMinValue;
	int FMaxValue;
	int FLineSize;
	int FMultipleLineSize;
	bool FCutandPaste;
	void *FButton;
	Controls::TWinControl* FButtonWin;
	void __fastcall SetEditRect(void);
	void __fastcall SetInteger(int Index, int aValue);
	void __fastcall SetValue(int aValue);
	int __fastcall GetMinHeight(void);
	int __fastcall GetValue(void);
	int __fastcall CheckValue(int aValue);
	void __fastcall SetBColor(Graphics::TColor value);
	Graphics::TColor __fastcall GetBColor(void);
	void __fastcall SetAColor(Graphics::TColor value);
	Graphics::TColor __fastcall GetAColor(void);
	HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Msg);
	HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
	HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
	HIDESBASE MESSAGE void __fastcall WMCut(Messages::TWMNoParams &Message);
	HIDESBASE MESSAGE void __fastcall WMPaste(Messages::TWMNoParams &Message);
	HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
	
protected:
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	virtual void __fastcall CreateWnd(void);
	DYNAMIC void __fastcall AdjustSize(void);
	virtual void __fastcall DownClick(System::TObject* Sender);
	virtual bool __fastcall IsValidChar(char Key);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	DYNAMIC void __fastcall KeyPress(char &Key);
	virtual void __fastcall UpClick(System::TObject* Sender);
	
public:
	__fastcall virtual TAHMDBCustomSpinEdit(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMDBCustomSpinEdit(void);
	__property void * Button = {read=FButton};
	
__published:
	__property Ahmstdclass::TAHMAboutSControlStr About = {read=FAboutStr, write=FAboutStr};
	__property AutoSelect ;
	__property AutoSize ;
	__property Color ;
	__property Ctl3D ;
	__property DragCursor ;
	__property DragMode ;
	__property Graphics::TColor ArrowColor = {read=GetAColor, write=SetAColor, default=0};
	__property Graphics::TColor ButtonColor = {read=GetBColor, write=SetBColor, default=-2147483633};
	__property bool CutandPaste = {read=FCutandPaste, write=FCutandPaste, default=1};
	__property Enabled ;
	__property Font ;
	__property ImeMode ;
	__property ImeName ;
	__property int LineSize = {read=FLineSize, write=SetInteger, index=2, default=1};
	__property MaxLength ;
	__property int MaxValue = {read=FMaxValue, write=SetInteger, index=0, default=100};
	__property int MinValue = {read=FMinValue, write=SetInteger, index=1, default=0};
	__property int MultipleLineSize = {read=FMultipleLineSize, write=SetInteger, index=3, default=10};
	__property ParentColor ;
	__property ParentCtl3D ;
	__property ParentFont ;
	__property ParentShowHint ;
	__property PopupMenu ;
	__property ReadOnly ;
	__property ShowHint ;
	__property TabOrder ;
	__property TabStop ;
	__property int Value = {read=GetValue, write=SetValue, default=0};
	__property Visible ;
	__property DataField ;
	__property DataSource ;
	__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:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAHMDBCustomSpinEdit(HWND ParentWindow) : Dbctrls::TDBEdit(
		ParentWindow) { }
	#pragma option pop
	
};

#pragma pack(pop)

class DELPHICLASS TAHMDBSpinEdit;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TAHMDBSpinEdit : public TAHMDBCustomSpinEdit 
{
	typedef TAHMDBCustomSpinEdit inherited;
	
public:
	#pragma option push -w-inl
	/* TAHMDBCustomSpinEdit.Create */ inline __fastcall virtual TAHMDBSpinEdit(Classes::TComponent* AOwner
		) : TAHMDBCustomSpinEdit(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TAHMDBCustomSpinEdit.Destroy */ inline __fastcall virtual ~TAHMDBSpinEdit(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAHMDBSpinEdit(HWND ParentWindow) : TAHMDBCustomSpinEdit(
		ParentWindow) { }
	#pragma option pop
	
};

#pragma pack(pop)

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

}	/* namespace Ahmtdbspinedit */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Ahmtdbspinedit;
#endif
#pragma option pop	// -w-

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// AHMTDBSpinEdit
