home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 May
/
VPR9705A.ISO
/
VPR_DATA
/
PROGRAM
/
CBTRIAL
/
SETUP
/
DATA.Z
/
DATAFORM.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-14
|
4KB
|
114 lines
//----------------------------------------------------------------------------
// Dataform.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: Dataform.pas
//----------------------------------------------------------------------------
#ifndef DataformHPP
#define DataformHPP
//----------------------------------------------------------------------------
#include <Frmexprt.hpp>
#include <DBGrids.hpp>
#include <Bde.hpp>
#include <DBCtrls.hpp>
#include <DBTables.hpp>
#include <DB.hpp>
#include <Controls.hpp>
#include <ExtCtrls.hpp>
#include <Forms.hpp>
#include <Graphics.hpp>
#include <StdCtrls.hpp>
#include <Classes.hpp>
#include <Windows.hpp>
#include <SysUtils.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Dataform
{
//-- type declarations -------------------------------------------------------
enum TUsedControls { ucGrid, ucScrollBox };
class __declspec(delphiclass) TDataForm;
class __declspec(pascalimplementation) TDataForm : public Forms::TForm
{
typedef Forms::TForm inherited;
__published:
Dbtables::TQuery* Query1;
Dbtables::TQuery* Query2;
Db::TDataSource* DataSource1;
Db::TDataSource* DataSource2;
Extctrls::TPanel* Panel1;
Dbtables::TTable* Table1;
Dbtables::TTable* Table2;
Dbctrls::TDBNavigator* DBNavigator;
void __fastcall FormCreate(System::TObject* Sender);
private:
int NumFields;
int XPos;
int YPos;
Forms::TScrollBox* FScrollBox;
Extctrls::TPanel* FScrollPanel;
Extctrls::TPanel* FGridPanel1;
Extctrls::TPanel* FGridPanel2;
int MaxLabelWidth;
Word CharWidth;
int LowestControl;
System::Set<TUsedControls, ucGrid, ucScrollBox> UsedControls;
Controls::TControl* __fastcall CreateControl(Frmexprt::PFieldInfo Field);
System::AnsiString __fastcall CreateName(Classes::TComponent* Component, System::AnsiString Value)
;
POINT __fastcall GetMaxControlValue(void);
void __fastcall RestructureForm(int Value);
public:
bool MultiQuery;
bool ByRow;
int Pass;
bool LabelsLeft;
int LastHeight;
bool CreateTable;
bool GenDataSets;
System::AnsiString UsesName;
Db::TDataSource* MainDataSource1;
Db::TDataSource* MainDataSource2;
void __fastcall NextPass(void);
Classes::TMemoryStream* __fastcall CreateRes(const System::AnsiString FormName);
Classes::TMemoryStream* __fastcall CreateHdrSource(const System::AnsiString FilePath, const System::AnsiString
FormName);
Classes::TMemoryStream* __fastcall CreateSource(const System::AnsiString FilePath, const System::AnsiString
FormName, System::AnsiString DMFileName);
void __fastcall CreateField(const System::AnsiString FieldName, Frmexprt::PFieldInfo Field);
void __fastcall CreateGrid(void);
__property Forms::TScrollBox* ScrollBox = {read=FScrollBox, nodefault};
public:
/* TForm.Create */ __fastcall virtual TDataForm(Classes::TComponent* AOwner) : Forms::TForm(AOwner)
{ }
/* TForm.CreateNew */ __fastcall TDataForm(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(AOwner
, Dummy) { }
/* TForm.Destroy */ __fastcall virtual ~TDataForm(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TDataForm(HWND ParentWindow) : Forms::TForm(ParentWindow
) { }
};
//-- var, const, procedure ---------------------------------------------------
//-- template instantiations -------------------------------------------------
template class System::Set<TUsedControls, ucGrid, ucScrollBox> ;
} /* namespace Dataform */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Dataform;
#endif
//-- end unit ----------------------------------------------------------------
#endif // Dataform