//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <vcl\Classes.hpp>
#include <vcl\Controls.hpp>
#include <vcl\StdCtrls.hpp>
#include <vcl\Forms.hpp>
#include <vcl\DBGrids.hpp>
#include "Grids.hpp"
#include <vcl\ExtCtrls.hpp>
#include <vcl\DBTables.hpp>
#include <vcl\DB.hpp>
#include "RVReport.hpp"
#include "PtblRV.hpp"
#include "RVStyle.hpp"
#include <Db.hpp>
//---------------------------------------------------------------------------
class TfrmMain : public TForm
{
__published:	// IDE-managed Components
	TDBGrid *DBGrid1;
	TPanel *Panel1;
	TCheckBox *CheckBox1;
	TTable *Table1;
	TDataSource *DataSource1;
	TRVReportHelper *RVReportHelper1;
	TRVStyle *RVStyle1;
	void __fastcall FormCreate(TObject *Sender);

	void __fastcall DBGrid1DrawColumnCell(TObject *Sender, const TRect &Rect,
	int DataCol, TColumn *Column, TGridDrawState State);
	void __fastcall DBGrid1EditButtonClick(TObject *Sender);
	void __fastcall CheckBox1Click(TObject *Sender);
private:	// User declarations
    int DefRowHeight;
    void SetRowHeight();
    bool IsRVFField(TField* Field);    
public:		// User declarations
	__fastcall TfrmMain(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern TfrmMain *frmMain;
//---------------------------------------------------------------------------
#endif
 