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

#ifndef RealSizeImage_FormH
#define RealSizeImage_FormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "TntExtCtrls.hpp"
#include "TntStdCtrls.hpp"
#include "TntForms.hpp"
#include <Dialogs.hpp>
#include <ExtDlgs.hpp>

//---------------------------------------------------------------------------
class TRealSizeImageForm : public TTntForm
{
__published:	// IDE-managed Components
  TPanel *Panel1;
  TTntImage *TntImage1;
  TPanel *Panel2;
  TPanel *Panel3;
  TTntButton *TntButton1;
  TTntImage *TntImage2;
  TTntButton *TntButton2;
  TSavePictureDialog *SavePictureDialog1;
  void __fastcall TntButton1Click(TObject *Sender);
  void __fastcall TntImage2MouseDown(TObject *Sender, TMouseButton Button,
          TShiftState Shift, int X, int Y);
  void __fastcall TntImage2MouseMove(TObject *Sender, TShiftState Shift,
          int X, int Y);
  void __fastcall TntImage2MouseUp(TObject *Sender, TMouseButton Button,
          TShiftState Shift, int X, int Y);
  void __fastcall TntButton2Click(TObject *Sender);
private:	// User declarations
  int prevX;
  int LeftPos;
  int RightPos;
  int displayImageWidth;
  bool MouseDownSW;
  int shiftX;
  int prevLeftPos;
  int originLeftPos;
  int originRightPos;

  void __fastcall ImageNavigatorDisplay(void);
public:		// User declarations
	__fastcall TRealSizeImageForm(TComponent* Owner);
 void  __fastcall SetImage(TTntImage* ImageData);

};
//---------------------------------------------------------------------------
extern PACKAGE TRealSizeImageForm *RealSizeImageForm;
//---------------------------------------------------------------------------
#endif
