home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / borland / cb / setup / cbuilder / data.z / CUSTORDS.CPP < prev    next >
C/C++ Source or Header  |  1997-02-28  |  1KB  |  38 lines

  1. //----------------------------------------------------------------------------
  2. //Borland C++Builder
  3. //Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
  4. //----------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #include <vcl.h>
  7. #pragma hdrstop
  8.  
  9. #include "CustOrds.h"
  10. #include "DM.h"
  11. #include "Toolbar.h"
  12. //---------------------------------------------------------------------------
  13. #pragma resource "*.dfm"
  14. TfmCustOrd *fmCustOrd;
  15. //---------------------------------------------------------------------------
  16. __fastcall TfmCustOrd::TfmCustOrd(TComponent* Owner)
  17.   : TForm(Owner)
  18. {
  19. }
  20. //---------------------------------------------------------------------------
  21. void __fastcall TfmCustOrd::FormActivate(TObject *Sender)
  22. {
  23.   if(ActiveControl == DBGrid1)
  24.     DBGrid1Enter(NULL);
  25. }
  26. //---------------------------------------------------------------------
  27. void __fastcall TfmCustOrd::FormClose(TObject *Sender,
  28.       TCloseAction &Action)
  29. {
  30.   Action = caFree;
  31. }
  32. //---------------------------------------------------------------------
  33. void __fastcall TfmCustOrd::DBGrid1Enter(TObject *Sender)
  34. {
  35.   fmToolbar->SetNavigator(DM1->OrdersSource);
  36. }
  37. //---------------------------------------------------------------------
  38.