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

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

#ifndef ahmtarrowbuttonHPP
#define ahmtarrowbuttonHPP

#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 <Forms.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 Ahmtarrowbutton
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TAHMDirection { dUp, dRight, dLeft, dDown };
#pragma option pop

typedef Shortint TAHMButtonRaise;

class DELPHICLASS TAHMArrowButton;
class PASCALIMPLEMENTATION TAHMArrowButton : public Ahmcontrols::TAHMGraphicControl 
{
	typedef Ahmcontrols::TAHMGraphicControl inherited;
	
private:
	TAHMDirection kDirection;
	Ahmtbackground::TAHMBackground* fback;
	bool kButtonDown;
	Types::TPoint kpnts[3];
	TAHMButtonRaise FButtonBorder;
	HRGN kRgn;
	Ahmenhancedclass::TAHMGlyph* fAHMGlyph;
	void __fastcall SetDirection(TAHMDirection value);
	void __fastcall Setback(Ahmtbackground::TAHMBackground* value);
	void __fastcall SetButtonBorder(TAHMButtonRaise Value);
	void __fastcall SetAHMGlyph(Ahmenhancedclass::TAHMGlyph* value);
	void __fastcall FreeRegion(void);
	virtual void __fastcall DrawUpArrow(void);
	virtual void __fastcall DrawRightArrow(void);
	virtual void __fastcall DrawDownArrow(void);
	virtual void __fastcall DrawLeftArrow(void);
	virtual void __fastcall MoveButton(void);
	HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
	HIDESBASE MESSAGE void __fastcall WMLButtonUp(Messages::TWMMouse &Message);
	void __fastcall DoGlyphChange(System::TObject* Sender);
	
protected:
	virtual void __fastcall Paint(void);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
	
public:
	__fastcall virtual TAHMArrowButton(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMArrowButton(void);
	
__published:
	__property Ahmtbackground::TAHMBackground* Background = {read=fback, write=Setback};
	__property TAHMDirection ButtonType = {read=kDirection, write=SetDirection, default=0};
	__property TAHMButtonRaise ButtonRaise = {read=FButtonBorder, write=SetButtonBorder, default=1};
	__property Ahmenhancedclass::TAHMGlyph* Glyph = {read=fAHMGlyph, write=SetAHMGlyph};
	__property Enabled  = {default=1};
	__property ParentShowHint  = {default=1};
	__property ShowHint ;
	__property Visible  = {default=1};
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnClick ;
};


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

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

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