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

// (DO NOT EDIT: machine generated header) 'AHMTDBStickyLabel.pas' rev: 5.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:
	Ahmstdclass::TAHMAboutSControlStr 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 Ahmstdclass::TAHMAboutSControlStr 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 */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Ahmtdbstickylabel;
#endif
#pragma option pop	// -w-
#pragma option pop	// -Vx

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