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

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

#ifndef ahmtdiceHPP
#define ahmtdiceHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <ahmfreeware.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.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 Ahmtdice
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TAHMDice;
class PASCALIMPLEMENTATION TAHMDice : public Controls::TGraphicControl 
{
	typedef Controls::TGraphicControl inherited;
	
private:
	AnsiString FAbout;
	int FValue;
	Graphics::TColor FDotColor;
	Graphics::TColor fback;
	Graphics::TColor fhback;
	bool fHold;
	void __fastcall AutoInitialize(void);
	void __fastcall SetValue(int Value);
	void __fastcall SetDotColor(Graphics::TColor Value);
	void __fastcall Holdit(bool Value);
	MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
	void __fastcall Setback(Graphics::TColor value);
	void __fastcall Sethback(Graphics::TColor value);
	
protected:
	DYNAMIC void __fastcall Click(void);
	virtual void __fastcall Paint(void);
	
public:
	__fastcall virtual TAHMDice(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMDice(void);
	void __fastcall Roll(void);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
	
__published:
	__property AnsiString About = {read=FAbout, write=FAbout};
	__property OnClick ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property Graphics::TColor NormalBackground = {read=fback, write=Setback, nodefault};
	__property Graphics::TColor HoldBackground = {read=fhback, write=Sethback, nodefault};
	__property OnEndDrag ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property int Value = {read=FValue, write=SetValue, default=1};
	__property bool Hold = {read=fHold, write=Holdit, default=0};
	__property Graphics::TColor DotColor = {read=FDotColor, write=SetDotColor, default=0};
};


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

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

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