home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 May / VPR9705A.ISO / VPR_DATA / PROGRAM / CBTRIAL / SETUP / DATA.Z / HEADMAIN.CPP < prev    next >
C/C++ Source or Header  |  1997-02-14  |  1KB  |  27 lines

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4.  
  5. #include "headmain.h"
  6. //---------------------------------------------------------------------------
  7. #pragma resource "*.dfm"
  8. TForm1 *Form1;
  9. //---------------------------------------------------------------------------
  10. __fastcall TForm1::TForm1(TComponent* Owner)
  11.   : TForm(Owner)
  12. {
  13. }
  14. //---------------------------------------------------------------------------
  15. void __fastcall TForm1::HeaderControl1SectionTrack(
  16.       THeaderControl *HeaderControl, THeaderSection *Section,
  17.       int Width, TSectionTrackState State)
  18. {
  19.         Section->Width = Width;
  20.         Shape1->Width = HeaderControl->Sections->Items[0]->Width;
  21.         Shape2->Width = HeaderControl->Sections->Items[1]->Width;
  22.         Shape2->Left = HeaderControl->Sections->Items[1]->Left;
  23.         Shape3->Width = HeaderControl->Sections->Items[2]->Width;
  24.         Shape3->Left = HeaderControl->Sections->Items[2]->Left;
  25. }
  26. //---------------------------------------------------------------------
  27.