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

// (DO NOT EDIT: machine generated header) 'AHMTStickyLabel.pas' rev: 3.00

#ifndef AHMTStickyLabelHPP
#define AHMTStickyLabelHPP
#include <AHMStdClass.hpp>
#include <Windows.hpp>
#include <Forms.hpp>
#include <Messages.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Classes.hpp>
#include <SysInit.hpp>
#include <System.hpp>

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

namespace Ahmtstickylabel
{
//-- type declarations -------------------------------------------------------
enum TAHMStdPosition { pLeft, pRight, pTop, pBottom };

class DELPHICLASS TAHMStickyLabel;
class PASCALIMPLEMENTATION TAHMStickyLabel : public Stdctrls::TLabel 
{
	typedef Stdctrls::TLabel inherited;
	
private:
	Ahmstdclass::TAHMAboutSControlStr FAboutStr;
	Controls::TWinControl* FAttachTo;
	TAHMStdPosition FPosition;
	int FSpace;
	void *FDefAttachedProc;
	void *FAttachedInstance;
	bool FRealigning;
	void __fastcall SetSpace(int Value);
	void __fastcall SetAttachTo(Controls::TWinControl* Value);
	void __fastcall SetPosition(TAHMStdPosition Value);
	void __fastcall AttachedWndProc(Messages::TMessage &Message);
	
protected:
	void __fastcall CheckForControl(void);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
		);
	virtual void __fastcall WndProc(Messages::TMessage &Message);
	
public:
	__fastcall virtual TAHMStickyLabel(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMStickyLabel(void);
	virtual void __fastcall Loaded(void);
	void __fastcall ReAlign(void);
	
__published:
	__property Ahmstdclass::TAHMAboutSControlStr About = {read=FAboutStr, write=FAboutStr};
	__property TAHMStdPosition Position = {read=FPosition, write=SetPosition, default=0};
	__property Controls::TWinControl* AttachToControl = {read=FAttachTo, write=SetAttachTo};
	__property int Space = {read=FSpace, write=SetSpace, default=5};
};

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

}	/* namespace Ahmtstickylabel */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Ahmtstickylabel;
#endif
//-- end unit ----------------------------------------------------------------
#endif	// AHMTStickyLabel
