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

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

#ifndef ahmtdbstickylabelHPP
#define ahmtdbstickylabelHPP

#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 <Windows.hpp>	// Pascal unit
#include <Dialogs.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 Ahmtdbstickylabel
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TAHMPosition { pLeft, pRight, pTop, pBottom };
#pragma option pop

class DELPHICLASS TAHMDBStickyLabel;
class PASCALIMPLEMENTATION TAHMDBStickyLabel : public Dbctrls::TDBText 
{
	typedef Dbctrls::TDBText inherited;
	
private:
	AnsiString FAboutStr;
	Controls::TWinControl* FAttachTo;
	TAHMPosition FPosition;
	int FSpace;
	void *FDefAttachedProc;
	void *FAttachedInstance;
	bool FRealigning;
	void __fastcall SetSpace(int Value);
	void __fastcall SetAttachTo(Controls::TWinControl* Value);
	void __fastcall SetPosition(TAHMPosition 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 TAHMDBStickyLabel(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMDBStickyLabel(void);
	void __fastcall ReAlign(void);
	
__published:
	__property AnsiString About = {read=FAboutStr, write=FAboutStr};
	__property TAHMPosition 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 Ahmtdbstickylabel */
using namespace Ahmtdbstickylabel;
#pragma option pop	// -w-
#pragma option pop	// -Vx

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