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

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

#ifndef ahmtspineditHPP
#define ahmtspineditHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp>	// Pascal unit
#include <ahmstdclass.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Forms.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 Ahmtspinedit
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TAHMButtonState { bsUp, bsTopDown, bsBottomDown, bsDisabled };
#pragma option pop

class DELPHICLASS TAHMCustomSpinButton;
class PASCALIMPLEMENTATION TAHMCustomSpinButton : public Controls::TGraphicControl 
{
	typedef Controls::TGraphicControl inherited;
	
private:
	Graphics::TBitmap* FCache;
	TAHMButtonState FDown;
	TAHMButtonState FLastDown;
	bool FDragging;
	Classes::TNotifyEvent FOnTopClick;
	Graphics::TColor FaColor;
	Graphics::TColor FColor;
	Classes::TNotifyEvent FOnBottomClick;
	HIDESBASE void __fastcall SetColor(Graphics::TColor value);
	void __fastcall SetAColor(Graphics::TColor value);
	void __fastcall SetDown(TAHMButtonState Value);
	void __fastcall CreateStates(void);
	void __fastcall DrawState(TAHMButtonState State);
	HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Msg);
	
protected:
	virtual void __fastcall Paint(void);
	DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	
public:
	__fastcall virtual TAHMCustomSpinButton(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMCustomSpinButton(void);
	__property TAHMButtonState Down = {read=FDown, write=SetDown, default=0};
	
__published:
	__property Enabled  = {default=1};
	__property ShowHint ;
	__property Classes::TNotifyEvent OnBottomClick = {read=FOnBottomClick, write=FOnBottomClick};
	__property Classes::TNotifyEvent OnTopClick = {read=FOnTopClick, write=FOnTopClick};
	__property Graphics::TColor Color = {read=FColor, write=SetColor, default=-2147483633};
	__property Graphics::TColor ArrowColor = {read=FaColor, write=SetAColor, default=0};
};


class DELPHICLASS TAHMCustomSpinEdit;
class PASCALIMPLEMENTATION TAHMCustomSpinEdit : public Stdctrls::TCustomEdit 
{
	typedef Stdctrls::TCustomEdit inherited;
	
private:
	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);
	MESSAGE void __fastcall WMCut(Messages::TWMNoParams &Message);
	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);
	virtual void __fastcall DownClick(System::TObject* Sender);
	DYNAMIC void __fastcall AdjustSize(void);
	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 TAHMCustomSpinEdit(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMCustomSpinEdit(void);
	__property void * Button = {read=FButton};
	
__published:
	__property AutoSelect  = {default=1};
	__property AutoSize  = {default=1};
	__property Anchors  = {default=3};
	__property BiDiMode ;
	__property Constraints ;
	__property DragCursor  = {default=-12};
	__property DragKind  = {default=0};
	__property DragMode  = {default=0};
	__property ParentBiDiMode  = {default=1};
	__property Color  = {default=-2147483643};
	__property Ctl3D ;
	__property Graphics::TColor ButtonColor = {read=GetBColor, write=SetBColor, default=-2147483633};
	__property Graphics::TColor ArrowColor = {read=GetAColor, write=SetAColor, default=0};
	__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 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 TAHMCustomSpinEdit(HWND ParentWindow) : Stdctrls::TCustomEdit(ParentWindow) { }
	#pragma option pop
	
};


#pragma option push -b-
enum TAHMSpinButtonState { sbUp, sbTopDown, sbBottomDown, sbDisabled };
#pragma option pop

class DELPHICLASS TAHMSpinButton;
class PASCALIMPLEMENTATION TAHMSpinButton : public TAHMCustomSpinButton 
{
	typedef TAHMCustomSpinButton inherited;
	
private:
	AnsiString FAboutStr;
	
__published:
	__property AnsiString About = {read=FAboutStr, write=FAboutStr};
public:
	#pragma option push -w-inl
	/* TAHMCustomSpinButton.Create */ inline __fastcall virtual TAHMSpinButton(Classes::TComponent* AOwner) : TAHMCustomSpinButton(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TAHMCustomSpinButton.Destroy */ inline __fastcall virtual ~TAHMSpinButton(void) { }
	#pragma option pop
	
};


class DELPHICLASS TAHMSpinEdit;
class PASCALIMPLEMENTATION TAHMSpinEdit : public TAHMCustomSpinEdit 
{
	typedef TAHMCustomSpinEdit inherited;
	
private:
	AnsiString FAboutStr;
	
__published:
	__property AnsiString About = {read=FAboutStr, write=FAboutStr};
public:
	#pragma option push -w-inl
	/* TAHMCustomSpinEdit.Create */ inline __fastcall virtual TAHMSpinEdit(Classes::TComponent* AOwner) : TAHMCustomSpinEdit(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TAHMCustomSpinEdit.Destroy */ inline __fastcall virtual ~TAHMSpinEdit(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAHMSpinEdit(HWND ParentWindow) : TAHMCustomSpinEdit(ParentWindow) { }
	#pragma option pop
	
};


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

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

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