class TFormulsDialog1 : public TDialog
{
public:
  TFormulsDialog1();
  ~TFormulsDialog1();

  TCompCollect *AlgColect;
  TCompCollect *FormColect;
  TCompCollect *TipColect;
  TCompCollect *ViewColect;
  TCompCollect *FreeColect;

  char PathDir[256];

  virtual void handleEvent ( TEvent& event );
  void ViewFormul(int item);
  void ViewFixFree();
  static int SelectFormuls(void* source,TEvent& event);

  int CheckFormuls(ushort oper,int nmb,int nmb1);
  int ConvertFormul(char *str_src,char *str_dest);
  void SaveFrm(int item);
  void SetCur(int x,int y);

  TScrollBar *ScrollBar;
  TScrollBar *ScrollBarIn;
  TScrollBar *ScrollBarKf;
  TScrollBar *ScrollBarEdH;
  TScrollBar *ScrollBarEdV;
  TIndicator *Indicator;
  TMyTListBox *MyTListBox;
  TMyTListBox *ListBoxIn;
  TMyTListBox *ListBoxKf;
  TComboBox *ComboBox1;
  TEdit *ComboLine1;

  int OldIndChek;
  int OldIndChekIn;
  int OldIndChekKf;

  Boolean Modifs;
  Boolean Modif;

  TMemo *MemoFrm;

  TMyLabel *L_N_In;
  TMyLabel *L_N_Kf;
  TMyLabel *TipForm;
  TMyLabel *TipForm1;
};