//---------------------------------------------------------------------------
#ifndef UnitFloatControlsH
#define UnitFloatControlsH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "RTEditor.h"
#include <ComCtrls.hpp>

//---------------------------------------------------------------------------
typedef void __fastcall (__closure *TTFormFloatControlsEvent)(System::TObject* Sender, TRTEditor::TControlType Type, TRTEditor::TFloatControl Control);

//---------------------------------------------------------------------------
class TFormFloatControls : public TForm
{
__published:	// IDE-managed Components
	void __fastcall TrackBarChange(TObject *Sender);

private:	// User declarations
	TRTEditor::TControlType Type;
	TRTEditor::TFloatControls Controls;
	TTFormFloatControlsEvent FOnControlChange;

public:		// User declarations
	__fastcall TFormFloatControls(TComponent* Owner, AnsiString Caption, TRTEditor::TControlType Type, TRTEditor::TFloatControls Controls);
	__property TTFormFloatControlsEvent OnControlChange = {read=FOnControlChange, write=FOnControlChange};
};
//---------------------------------------------------------------------------

#endif

