// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'AHMTDBCommandLabel.pas' rev: 5.00

#ifndef AHMTDBCommandLabelHPP
#define AHMTDBCommandLabelHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <AHMStdClass.hpp>	// Pascal unit
#include <DBCtrls.hpp>	// Pascal unit
#include <Db.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 Ahmtdbcommandlabel
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TAHMDBCommand { runNothing, runMAIL, runURL, runFTP, runFILE, runEVENT };
#pragma option pop

class DELPHICLASS TAHMDBCommandLabel;
class PASCALIMPLEMENTATION TAHMDBCommandLabel : public Dbctrls::TDBText 
{
	typedef Dbctrls::TDBText inherited;
	
private:
	Ahmstdclass::TAHMAboutSControlStr FAboutStr;
	TAHMDBCommand FCommand;
	Graphics::TColor FActiveColor;
	Graphics::TColor NFontColor;
	Graphics::TColor FMOver;
	bool Followed;
	bool Pushed;
	bool FDown;
	bool FEnabled;
	bool MouseIn;
	Classes::TNotifyEvent foncommand;
	HIDESBASE MESSAGE void __fastcall WMMouseMove(Messages::TWMMouse &msg);
	HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &msg);
	HIDESBASE MESSAGE void __fastcall WMLButtonUp(Messages::TWMMouse &msg);
	
public:
	__fastcall virtual TAHMDBCommandLabel(Classes::TComponent* AOwner);
	DYNAMIC void __fastcall Click(void);
	virtual void __fastcall Loaded(void);
	__fastcall virtual ~TAHMDBCommandLabel(void);
	
__published:
	__property Ahmstdclass::TAHMAboutSControlStr About = {read=FAboutStr, write=FAboutStr};
	__property TAHMDBCommand 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};
};


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

}	/* namespace Ahmtdbcommandlabel */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Ahmtdbcommandlabel;
#endif
#pragma option pop	// -w-
#pragma option pop	// -Vx

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