home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 May
/
VPR9705A.ISO
/
VPR_DATA
/
PROGRAM
/
CBTRIAL
/
SETUP
/
DATA.Z
/
CUSTORDS.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-14
|
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);
}
//---------------------------------------------------------------------