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

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

#ifndef ahmtbuttonHPP
#define ahmtbuttonHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <ahmcontrols.hpp>	// Pascal unit
#include <ahmenhancedclass.hpp>	// Pascal unit
#include <ahmtbackground.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 <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Ahmtbutton
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TAHMButton;
class PASCALIMPLEMENTATION TAHMButton : public Stdctrls::TButtonControl 
{
	typedef Stdctrls::TButtonControl inherited;
	
private:
	AnsiString FAHMAboutStr;
	Graphics::TColor FButtonColor;
	bool FActive;
	Graphics::TCanvas* FCanvas;
	int Flags;
	bool fword;
	Ahmenhancedclass::TAHMFont3D* F3D;
	Ahmenhancedclass::TAHMGlyph* FAHMGlyph;
	bool FButtonSunk;
	Graphics::TBitmap* FImage;
	Ahmtbackground::TAHMBackground* FBack;
	Controls::TModalResult FModalResult;
	bool FDefault;
	bool FCancel;
	void __fastcall Set3D(Ahmenhancedclass::TAHMFont3D* value);
	void __fastcall SetButtonSunk(bool Value);
	void __fastcall SetAHMGlyph(Ahmenhancedclass::TAHMGlyph* value);
	void __fastcall Setword(bool value);
	void __fastcall GlyphChange(System::TObject* Sender);
	void __fastcall DrawItem(const tagDRAWITEMSTRUCT &DrawItemStruct);
	HIDESBASE MESSAGE void __fastcall CMDialogKey(Messages::TWMKey &Message);
	HIDESBASE MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
	HIDESBASE MESSAGE void __fastcall CMFocusChanged(Controls::TCMFocusChanged &Message);
	MESSAGE void __fastcall CNCommand(Messages::TWMCommand &Message);
	MESSAGE void __fastcall CNMeasureItem(Messages::TWMMeasureItem &Message);
	MESSAGE void __fastcall CNDrawItem(Messages::TWMDrawItem &Message);
	HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
	void __fastcall SetFBack(const Ahmtbackground::TAHMBackground* Value);
	void __fastcall SetDefault(bool Value);
	HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Messages::TWMEraseBkgnd &Message);
	
protected:
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	DYNAMIC void __fastcall Click(void);
	virtual void __fastcall CreateWnd(void);
	
public:
	__fastcall virtual TAHMButton(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMButton(void);
	
__published:
	__property AnsiString About = {read=FAHMAboutStr, write=FAHMAboutStr};
	__property Anchors  = {default=3};
	__property BiDiMode ;
	__property Constraints ;
	__property DragKind  = {default=0};
	__property ParentBiDiMode  = {default=1};
	__property Caption ;
	__property bool Cancel = {read=FCancel, write=FCancel, default=0};
	__property bool Default = {read=FDefault, write=SetDefault, default=0};
	__property Ahmenhancedclass::TAHMFont3D* Font3D = {read=F3D, write=Set3D};
	__property Ahmenhancedclass::TAHMGlyph* Glyph = {read=FAHMGlyph, write=SetAHMGlyph};
	__property ParentShowHint  = {default=1};
	__property ShowHint ;
	__property Font ;
	__property Visible  = {default=1};
	__property Controls::TModalResult ModalResult = {read=FModalResult, write=FModalResult, default=0};
	__property bool WordWrap = {read=fword, write=Setword, default=0};
	__property bool ButtonSunk = {read=FButtonSunk, write=SetButtonSunk, default=0};
	__property Ahmtbackground::TAHMBackground* Background = {read=FBack, write=SetFBack};
	__property OnClick ;
	__property DragCursor  = {default=-12};
	__property ParentFont  = {default=1};
	__property PopupMenu ;
	__property TabOrder  = {default=-1};
	__property TabStop  = {default=0};
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDrag ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnEnter ;
	__property OnExit ;
	__property OnStartDrag ;
	__property Enabled  = {default=1};
	__property Width  = {default=100};
	__property Height  = {default=20};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAHMButton(HWND ParentWindow) : Stdctrls::TButtonControl(ParentWindow) { }
	#pragma option pop
	
};


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

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

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