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

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

#ifndef ahmtroundbuttonHPP
#define ahmtroundbuttonHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <ahmcontrols.hpp>	// Pascal unit
#include <ahmtbackground.hpp>	// Pascal unit
#include <ahmenhancedclass.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Ahmtroundbutton
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TAHMButtonType { btNormal, btInset };
#pragma option pop

class DELPHICLASS TAHMRoundButton;
class PASCALIMPLEMENTATION TAHMRoundButton : public Ahmcontrols::TAHMGraphicControl 
{
	typedef Ahmcontrols::TAHMGraphicControl inherited;
	
private:
	bool FDown;
	Ahmtbackground::TAHMBackground* fback;
	bool FMouseDown;
	bool FMouseInside;
	Ahmenhancedclass::TAHMGlyph* fAHMGlyph;
	Graphics::TColor fun;
	Classes::TNotifyEvent FOnClick;
	TAHMButtonType FRoundBType;
	Classes::TNotifyEvent FOnMouseEnter;
	Classes::TNotifyEvent FOnMouseExit;
	void __fastcall SetRButtonType(TAHMButtonType newRButtonType);
	void __fastcall SetBack(Ahmtbackground::TAHMBackground* value);
	void __fastcall SetAHMGlyph(Ahmenhancedclass::TAHMGlyph* value);
	void __fastcall SetUn(Graphics::TColor Value);
	bool __fastcall IsInsideButton(int X, int Y);
	void __fastcall PaintButton(void);
	void __fastcall DoGlyphChange(System::TObject* Sender);
	
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);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
	
public:
	__fastcall virtual TAHMRoundButton(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMRoundButton(void);
	
__published:
	__property TAHMButtonType ButtonType = {read=FRoundBType, write=SetRButtonType, default=0};
	__property Ahmenhancedclass::TAHMGlyph* Glyph = {read=fAHMGlyph, write=SetAHMGlyph};
	__property Graphics::TColor UnUsedColor = {read=fun, write=SetUn, default=65280};
	__property Enabled  = {default=1};
	__property ParentShowHint  = {default=1};
	__property ShowHint ;
	__property Visible  = {default=1};
	__property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property Ahmtbackground::TAHMBackground* Background = {read=fback, write=SetBack};
	__property Classes::TNotifyEvent OnMouseEnter = {read=FOnMouseEnter, write=FOnMouseEnter};
	__property Classes::TNotifyEvent OnMouseExit = {read=FOnMouseExit, write=FOnMouseExit};
};


//-- var, const, procedure ---------------------------------------------------
static const Shortint DefaultWidth = 0x28;
static const Shortint DefaultHeight = 0x28;

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

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