//--------------------------------------------------------------------------- #ifndef Actions1H #define Actions1H //--------------------------------------------------------------------------- #include #include #include #include #include #include #include #include "OlectraChart2D_TLB.h" //--------------------------------------------------------------------------- class TfrmActions : public TForm { __published: // IDE-managed Components TChart2D *Chart2D1; TScrollBar *HScroll; TScrollBar *VScroll; TGroupBox *gbEvents; TRadioButton *rbNone; TRadioButton *rbMove; TRadioButton *rbScale; TRadioButton *rbZoom; TRadioButton *rbRotate; TButton *cmdReset; TGroupBox *gbZoomType; TRadioButton *rbAxis; TRadioButton *rbGraphic; TGroupBox *gbDepth; TUpDown *udDepth; TEdit *edDepth; TMainMenu *MainMenu1; TMenuItem *mnuFile; TMenuItem *mnuExit; TMenuItem *mnuHelp; TMenuItem *mnuAboutThisDemo; TMenuItem *N1; TMenuItem *mnuAboutOlectraChart; void __fastcall mnuExitClick(TObject *Sender); void __fastcall FormCreate(TObject *Sender); void __fastcall FormActivate(TObject *Sender); void __fastcall cmdResetClick(TObject *Sender); void __fastcall HScrollChange(TObject *Sender); void __fastcall VScrollChange(TObject *Sender); void __fastcall rbNoneClick(TObject *Sender); void __fastcall rbMoveClick(TObject *Sender); void __fastcall rbRotateClick(TObject *Sender); void __fastcall rbScaleClick(TObject *Sender); void __fastcall rbZoomClick(TObject *Sender); void __fastcall edDepthKeyPress(TObject *Sender, char &Key); void __fastcall edDepthExit(TObject *Sender); void __fastcall rbAxisClick(TObject *Sender); void __fastcall rbGraphicClick(TObject *Sender); void __fastcall udDepthChanging(TObject *Sender, bool &AllowChange); void __fastcall mnuAboutThisDemoClick(TObject *Sender); void __fastcall mnuAboutOlectraChartClick(TObject *Sender); private: // User declarations public: // User declarations int HScrollValue; int VScrollValue; int HoldHScroll; int HoldVScroll; ActionConstants CurrentAction; void ClearEvents(); void EnableDepthSetting(bool Flag); void EnableZoomType(bool Flag); void ResetScrollBars(bool hFlag, bool vFlag); __fastcall TfrmActions(TComponent* Owner); }; //--------------------------------------------------------------------------- extern TfrmActions *frmActions; //--------------------------------------------------------------------------- #endif