home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 March / pcp161a.iso / handson / files / cppwkshp / TomDickHarry / TomDickHarry.cpp next >
Encoding:
C/C++ Source or Header  |  1999-12-04  |  976 b   |  28 lines

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4.  
  5. #include "TomDickHarry.h"
  6. //---------------------------------------------------------------------------
  7. #pragma package(smart_init)
  8. #pragma resource "*.dfm"
  9. TForm1 *Form1;
  10. //---------------------------------------------------------------------------
  11. __fastcall TForm1::TForm1(TComponent* Owner)
  12.     : TForm(Owner)
  13. {
  14. }
  15. //---------------------------------------------------------------------------
  16.  
  17. void __fastcall TForm1::FormCreate(TObject *Sender)
  18. {
  19.     // Copy the Notebook tab names to the Tabset control
  20.     TabSet1->Tabs->Assign (Notebook1->Pages);
  21. }
  22. //---------------------------------------------------------------------------
  23. void __fastcall TForm1::TabSet1Change(TObject *Sender, int NewTab, bool &AllowChange)
  24. {
  25.     Notebook1->PageIndex = NewTab;
  26. }
  27. //---------------------------------------------------------------------------
  28.