home *** CD-ROM | disk | FTP | other *** search
- //---------------------------------------------------------------------------
- #include <vcl.h>
- #pragma hdrstop
-
- #include "headmain.h"
- //---------------------------------------------------------------------------
- #pragma resource "*.dfm"
- TForm1 *Form1;
- //---------------------------------------------------------------------------
- __fastcall TForm1::TForm1(TComponent* Owner)
- : TForm(Owner)
- {
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::HeaderControl1SectionTrack(
- THeaderControl *HeaderControl, THeaderSection *Section,
- int Width, TSectionTrackState State)
- {
- Section->Width = Width;
- Shape1->Width = HeaderControl->Sections->Items[0]->Width;
- Shape2->Width = HeaderControl->Sections->Items[1]->Width;
- Shape2->Left = HeaderControl->Sections->Items[1]->Left;
- Shape3->Width = HeaderControl->Sections->Items[2]->Width;
- Shape3->Left = HeaderControl->Sections->Items[2]->Left;
- }
- //---------------------------------------------------------------------
-