// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'ahmtdbspinedit.pas' rev: 6.00

#ifndef ahmtdbspineditHPP
#define ahmtdbspineditHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#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;
class PASCALIMPLEMENTATION TAHMDBCustomSpinEdit : public Dbctrls::TDBEdit 
{
	typedef Dbctrls::TDBEdit inherited;
	
private:
	AnsiString 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 AnsiString About = {read=FAboutStr, write=FAboutStr};
	__property AutoSelect  = {default=1};
	__property AutoSize  = {default=1};
	__property Color  = {default=-2147483643};
	__property Ctl3D ;
	__property DragCursor  = {default=-12};
	__property DragMode  = {default=0};
	__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  = {default=1};
	__property Font ;
	__property ImeMode  = {default=3};
	__property ImeName ;
	__property int LineSize = {read=FLineSize, write=SetInteger, index=2, default=1};
	__property MaxLength  = {default=0};
	__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  = {default=0};
	__property ParentCtl3D  = {default=1};
	__property ParentFont  = {default=1};
	__property ParentShowHint  = {default=1};
	__property PopupMenu ;
	__property ReadOnly  = {default=0};
	__property ShowHint ;
	__property TabOrder  = {default=-1};
	__property TabStop  = {default=1};
	__property int Value = {read=GetValue, write=SetValue, default=0};
	__property Visible  = {default=1};
	__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
	
};


class DELPHICLASS TAHMDBSpinEdit;
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
	
};


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

}	/* namespace Ahmtdbspinedit */
using namespace Ahmtdbspinedit;
#pragma option pop	// -w-
#pragma option pop	// -Vx

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