home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / borland / cb / setup / cbuilder / data.z / SRCHDLG.H < prev    next >
C/C++ Source or Header  |  1997-02-28  |  2KB  |  53 lines

  1. //---------------------------------------------------------------------------
  2. // Borland C++Builder
  3. // Copyright (c) 1987, 1997 Borland International Inc.  All Rights Reserved.
  4. //---------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #ifndef srchdlgH
  7. #define srchdlgH
  8. //---------------------------------------------------------------------------
  9. #include <vcl\Classes.hpp>
  10. #include <vcl\Controls.hpp>
  11. #include <vcl\StdCtrls.hpp>
  12. #include <vcl\Forms.hpp>
  13. #include <vcl\Buttons.hpp>
  14. #include <vcl\DBGrids.hpp>
  15. #include <vcl\Grids.hpp>
  16. #include <vcl\DB.hpp>
  17. //---------------------------------------------------------------------------
  18. class TSearchDlg : public TForm
  19. {
  20. __published:    // IDE-managed Components
  21.     TLabel *Label1;               //
  22.     TLabel *Label2;               //
  23.     TComboBox *OrderCombo;        //
  24.     TEdit *SearchEd;              //
  25.     TSpeedButton *SearchButton;   //
  26.     TButton *OKBtn;               //
  27.     TButton *CancelBtn;           //
  28.     TDBGrid *DBGrid1;             //
  29.     TDataSource *DataSource;      //
  30.     void __fastcall DBGrid1DblClick(TObject *Sender);
  31.     void __fastcall SearchButtonClick(TObject *Sender);
  32.     void __fastcall OrderComboChange(TObject *Sender);
  33.     void __fastcall SearchEdKeyPress(TObject *Sender, char &Key);
  34.     void __fastcall SearchEdChange(TObject *Sender);
  35. private:    // User declarations
  36.     TField *SrchFld;
  37.     double GetCustNo();
  38.     void SetCustNo(double NewCustNo);
  39.     double GetPartNo();
  40.     void SetPartNo(double NewPartNo);
  41. public:        // User declarations
  42.     virtual __fastcall TSearchDlg(TComponent* Owner);
  43.     __property double PartNo={read=GetPartNo,write=SetPartNo};
  44.     __property double CustNo={read=GetCustNo,write=SetCustNo};
  45.     int ShowModalCust();
  46.     int ShowModalParts();
  47.  
  48. };
  49. //---------------------------------------------------------------------------
  50. extern TSearchDlg *SearchDlg;
  51. //---------------------------------------------------------------------------
  52. #endif
  53.