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

// (DO NOT EDIT: machine generated header) 'frmctrllink.pas' rev: 5.00

#ifndef frmctrllinkHPP
#define frmctrllinkHPP

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

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

namespace Frmctrllink
{
//-- type declarations -------------------------------------------------------
typedef void __fastcall (__closure *TSetEditorValueEvent)(System::TObject* Sender, Advgrid::TAdvStringGrid* 
	Grid, AnsiString AValue);

typedef void __fastcall (__closure *TGetEditorValueEvent)(System::TObject* Sender, Advgrid::TAdvStringGrid* 
	Grid, AnsiString &AValue);

typedef void __fastcall (__closure *TSetEditorProperties)(System::TObject* Sender, Advgrid::TAdvStringGrid* 
	Grid, Controls::TWinControl* AControl);

typedef void __fastcall (__closure *TSetEditorFocus)(System::TObject* Sender, Advgrid::TAdvStringGrid* 
	Grid, Controls::TWinControl* AControl);

class DELPHICLASS TFormControlEditLink;
class PASCALIMPLEMENTATION TFormControlEditLink : public Advgrid::TEditLink 
{
	typedef Advgrid::TEditLink inherited;
	
private:
	Controls::TWinControl* FControl;
	TGetEditorValueEvent FOnGetEditorValue;
	TSetEditorValueEvent FOnSetEditorValue;
	TSetEditorProperties FOnSetEditorProperties;
	TSetEditorFocus FOnSetEditorFocus;
	
protected:
	HIDESBASE void __fastcall EditExit(System::TObject* Sender);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation AOperation
		);
	
public:
	__fastcall virtual TFormControlEditLink(Classes::TComponent* AOwner);
	virtual Controls::TWinControl* __fastcall GetEditControl(void);
	virtual void __fastcall SetProperties(void);
	virtual AnsiString __fastcall GetEditorValue();
	virtual void __fastcall SetEditorValue(AnsiString s);
	virtual void __fastcall SetFocus(bool Value);
	
__published:
	__property Controls::TWinControl* Control = {read=FControl, write=FControl};
	__property TSetEditorValueEvent OnSetEditorValue = {read=FOnSetEditorValue, write=FOnSetEditorValue
		};
	__property TSetEditorFocus OnSetEditorFocus = {read=FOnSetEditorFocus, write=FOnSetEditorFocus};
	__property TGetEditorValueEvent OnGetEditorValue = {read=FOnGetEditorValue, write=FOnGetEditorValue
		};
	__property TSetEditorProperties OnSetEditorProperties = {read=FOnSetEditorProperties, write=FOnSetEditorProperties
		};
public:
	#pragma option push -w-inl
	/* TEditLink.Destroy */ inline __fastcall virtual ~TFormControlEditLink(void) { }
	#pragma option pop
	
};


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

}	/* namespace Frmctrllink */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Frmctrllink;
#endif
#pragma option pop	// -w-
#pragma option pop	// -Vx

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