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

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

#ifndef AHMTDBStickyLabelHPP
#define AHMTDBStickyLabelHPP
#include <AHMStdClass.hpp>
#include <DBCtrls.hpp>
#include <Db.hpp>
#include <Windows.hpp>
#include <Dialogs.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 Ahmtdbstickylabel
{
//-- type declarations -------------------------------------------------------
enum TAHMPosition { pLeft, pRight, pTop, pBottom };

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
//-- end unit ----------------------------------------------------------------
#endif	// AHMTDBStickyLabel
