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

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

#ifndef ahmtstickylabelHPP
#define ahmtstickylabelHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <ahmstdclass.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Ahmtstickylabel
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TAHMStdPosition { pLeft, pRight, pTop, pBottom };
#pragma option pop

class DELPHICLASS TAHMStickyLabel;
class PASCALIMPLEMENTATION TAHMStickyLabel : public Stdctrls::TLabel 
{
	typedef Stdctrls::TLabel inherited;
	
private:
	AnsiString 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 AnsiString 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 */
using namespace Ahmtstickylabel;
#pragma option pop	// -w-
#pragma option pop	// -Vx

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