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

#ifndef Unit5H
#define Unit5H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <DB.hpp>
#include <DBTables.hpp>
#include <Dialogs.hpp>
#include <ExtCtrls.hpp>
#include <Menus.hpp>
//---------------------------------------------------------------------------
class TForm5 : public TForm
{
__published:	// IDE-managed Components
                    TMainMenu *MainMenu1;
                    TScrollBox *ScrollBox1;
                    TPaintBox *PaintBox1;
                    TPaintBox *PaintBox2;
                    TDataSource *DataSource1;
                    TOpenDialog *OpenDialog1;
                    TSaveDialog *SaveDialog1;
                    TMenuItem *N1;
                    TMenuItem *N2;
                    TTable *Table1;
                    TMenuItem *N3;
                    TMenuItem *N4;
                    void __fastcall N2Click(TObject *Sender);
                    void __fastcall Pb2_up(TObject *Sender,
          TMouseButton Button, TShiftState Shift, int X, int Y);
                    void __fastcall FormCreate(TObject *Sender);
                    void __fastcall Pb2_move(TObject *Sender,
          TShiftState Shift, int X, int Y);
                    void __fastcall Pb2_down(TObject *Sender,
          TMouseButton Button, TShiftState Shift, int X, int Y);
                    void __fastcall PaintBox1Paint(TObject *Sender);
                    void __fastcall N4Click(TObject *Sender);
private: int i,j,i1,i3,n;AnsiString cc;//Char*Str N7,N8;
         float Zzbx[20000], Hzby[20000],Mdczzbx[20000],Mdxhzby[20000],Bxhb[20000];
         float x[20000],y[20000];
         AnsiString text[20000];
         AnsiString Jh[20000], Jb[20000],Jl[20000];
         int ox,oy;
         int ox1,oy1;    //松开鼠标的横纵坐标，设为了全局变量
         int ox2,oy2;
         int ox3,oy3;
         Boolean KG;
         int x1[20000],y1[20000];

         int x2[20000],y2[20000];

         int A,B;
         int xx1,xx2,yy1,yy2;
                  // User declarations
public:  AnsiString Jh1[20000];
         AnsiString Jh2[20000];
         int inum,ic[300],inum1;
         void __fastcall draw(float x[20000],float y[20000],AnsiString text[20000]);
       // __fastcall Ellipse(TRect Rect);
       void __fastcall draw2(float x[20000],float y[20000],AnsiString text[20000]);


         		// User declarations
                    __fastcall TForm5(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm5 *Form5;
//---------------------------------------------------------------------------
#endif
