home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
CUSTORDS.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
1KB
|
38 lines
//----------------------------------------------------------------------------
//Borland C++Builder
//Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
//----------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "CustOrds.h"
#include "DM.h"
#include "Toolbar.h"
//---------------------------------------------------------------------------
#pragma resource "*.dfm"
TfmCustOrd *fmCustOrd;
//---------------------------------------------------------------------------
__fastcall TfmCustOrd::TfmCustOrd(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TfmCustOrd::FormActivate(TObject *Sender)
{
if(ActiveControl == DBGrid1)
DBGrid1Enter(NULL);
}
//---------------------------------------------------------------------
void __fastcall TfmCustOrd::FormClose(TObject *Sender,
TCloseAction &Action)
{
Action = caFree;
}
//---------------------------------------------------------------------
void __fastcall TfmCustOrd::DBGrid1Enter(TObject *Sender)
{
fmToolbar->SetNavigator(DM1->OrdersSource);
}
//---------------------------------------------------------------------