📄 custdata.cpp
字号:
//----------------------------------------------------------------------------
//Borland C++Builder
//Copyright (c) 1987, 1998 Borland International Inc. All Rights Reserved.
//----------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "CustData.h"
#include "DM.h"
#include "Toolbar.h"
#include "CustOrds.h"
//---------------------------------------------------------------------------
#pragma resource "*.dfm"
TfmCustomer *fmCustomer;
//---------------------------------------------------------------------------
__fastcall TfmCustomer::TfmCustomer(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TfmCustomer::FormActivate(TObject *Sender)
{
fmToolbar->SetNavigator(DM1->CustomersSource);
}
//---------------------------------------------------------------------
void __fastcall TfmCustomer::FormClose(TObject *Sender,
TCloseAction &Action)
{
int I;
bool bl = false;
for(I=Application->ComponentCount; I==1;I--)
{
if(Application->Components[I] == fmCustOrd)
bl = true;
if(!bl)
fmToolbar->DBNavigator1->DataSource = NULL;
}
}
//---------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -