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

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

#ifndef ahmtcommandlabelHPP
#define ahmtcommandlabelHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <ahmstdclass.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <ShellAPI.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <Forms.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 Ahmtcommandlabel
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TAHMCommand { runNothing, runMAIL, runURL, runFTP, runFILE, runEVENT };
#pragma option pop

class DELPHICLASS TAHMCommandLabel;
class PASCALIMPLEMENTATION TAHMCommandLabel : public Stdctrls::TLabel 
{
	typedef Stdctrls::TLabel inherited;
	
private:
	TAHMCommand FCommand;
	Graphics::TColor FActiveColor;
	Graphics::TColor NFontColor;
	Graphics::TColor FMOver;
	AnsiString FAboutStr;
	bool Followed;
	bool Pushed;
	bool FDown;
	bool FEnabled;
	bool MouseIn;
	Classes::TNotifyEvent foncommand;
	AnsiString FCaptionValue;
	HIDESBASE MESSAGE void __fastcall WMMouseMove(Messages::TWMMouse &msg);
	HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &msg);
	HIDESBASE MESSAGE void __fastcall WMLButtonUp(Messages::TWMMouse &msg);
	void __fastcall SetCaptionValue(const AnsiString Value);
	
public:
	__fastcall virtual TAHMCommandLabel(Classes::TComponent* AOwner);
	DYNAMIC void __fastcall Click(void);
	virtual void __fastcall Loaded(void);
	
__published:
	__property AnsiString About = {read=FAboutStr, write=FAboutStr};
	__property TAHMCommand Command = {read=FCommand, write=FCommand, default=2};
	__property Graphics::TColor FollowedColor = {read=FActiveColor, write=FActiveColor, default=8388736};
	__property Graphics::TColor MoveOverColor = {read=FMOver, write=FMOver, default=255};
	__property Classes::TNotifyEvent RunEvent = {read=foncommand, write=foncommand};
	__property AnsiString CaptionValue = {read=FCaptionValue, write=SetCaptionValue};
public:
	#pragma option push -w-inl
	/* TGraphicControl.Destroy */ inline __fastcall virtual ~TAHMCommandLabel(void) { }
	#pragma option pop
	
};


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

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

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