home *** CD-ROM | disk | FTP | other *** search
- //---------------------------------------------------------------------------
- #include <vcl.h>
- #pragma hdrstop
-
- #include "TomDickHarry.h"
- //---------------------------------------------------------------------------
- #pragma package(smart_init)
- #pragma resource "*.dfm"
- TForm1 *Form1;
- //---------------------------------------------------------------------------
- __fastcall TForm1::TForm1(TComponent* Owner)
- : TForm(Owner)
- {
- }
- //---------------------------------------------------------------------------
-
- void __fastcall TForm1::FormCreate(TObject *Sender)
- {
- // Copy the Notebook tab names to the Tabset control
- TabSet1->Tabs->Assign (Notebook1->Pages);
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::TabSet1Change(TObject *Sender, int NewTab, bool &AllowChange)
- {
- Notebook1->PageIndex = NewTab;
- }
- //---------------------------------------------------------------------------
-