//---------------------------------------------------------------------------

#ifndef MotorSpeedSelection_FormH
#define MotorSpeedSelection_FormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Grids.hpp>
#include "TntGrids.hpp"
#include "TntStdCtrls.hpp"
#include "TntForms.hpp"
//---------------------------------------------------------------------------
class TMotorSpeedSelectionForm : public TTntForm
{
__published:	// IDE-managed Components
	TTntStringGrid *SpeedValueStringGrid;
	TTntButton *CloseButton;
	void __fastcall SpeedValueStringGridDrawCell(TObject *Sender, int ACol,
          int ARow, TRect &Rect, TGridDrawState State);
	void __fastcall SpeedValueStringGridSelectCell(TObject *Sender, int ACol,
          int ARow, bool &CanSelect);
private:	// User declarations
	int BaseSpeed;
    int CurrentSpeed;
    int SelectedSpeed;
//    int SpeedList[56];
	int SpeedList[300];
public:		// User declarations
	__fastcall TMotorSpeedSelectionForm(TComponent* Owner);
    void __fastcall SetSpeed(int baseSpeed, int currentSpeed);
    int __fastcall GetSelectedSpeed(void);
};
//---------------------------------------------------------------------------
extern PACKAGE TMotorSpeedSelectionForm *MotorSpeedSelectionForm;
//---------------------------------------------------------------------------
#endif
