home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Info / TeachU14 / SAMS / Code / Day08 / button.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-08  |  1.2 KB  |  36 lines

  1. //---------------------------------------------------------------------------
  2. #ifndef ButtonH
  3. #define ButtonH
  4. //---------------------------------------------------------------------------
  5. #include <vcl\Classes.hpp>
  6. #include <vcl\Controls.hpp>
  7. #include <vcl\StdCtrls.hpp>
  8. #include <vcl\Forms.hpp>
  9. #include <vcl\ExtCtrls.hpp>
  10. //---------------------------------------------------------------------------
  11. class TButtonForm : public TForm
  12. {
  13. __published:    // IDE-managed Components 
  14.     TButton *OK;
  15.     TButton *Ignore;
  16.     TButton *Cancel;
  17.     TButton *Abort;
  18.     TButton *Retry;
  19.     TButton *Yes;
  20.     TButton *No;
  21.     TLabel *Label1;
  22.     TBevel *Bevel1;
  23.     TPanel *Panel1;
  24.     TButton *EnableAllButton;
  25.     TButton *DisableAllButton;
  26.     void __fastcall EnableAllButtonClick(TObject *Sender);
  27. private:        // User declarations
  28. public:         // User declarations
  29.     virtual __fastcall TButtonForm(TComponent* Owner);
  30.     void EnableButtons(TForm* form, bool enable = true);
  31. };
  32. //---------------------------------------------------------------------------
  33. extern TButtonForm *ButtonForm;
  34. //---------------------------------------------------------------------------
  35. #endif
  36.