Platoo TXReportTTXAfterPrintEvent

Contents

Typedef for AfterPri nt event handler.

Delphi declaration
TTXAfterPrintEvent=procedure(Sender: TComponent; DoPrint: Boolean) of object;
C++ declaration
typedef void __fastcall(__closure *TTXAfterPrintEvent)(Classes::TComponent *Sender, bool DoPrint);

Description
DoPrint is set to true, if the component was actually printed.

TTXBeforePrintEvent

Contents

Typedef for BeforePrint event handler.

Delphi declaration
TTXBeforePrintEvent=procedure(Sender: TComponent; var DoPrint: Boolean) of object;
C++ declaration
typedef void __fastcall(__closure *TTXBeforePrintEvent)(Classes::TComponent *Sender, bool & DoPrint);

Description
Set DoPrint to false to skip actual printing of the component.

TTXCalcOperation

Contents

Type of calculation operation performed by TTXCalcLabel .

Delphi declaration
TTXCalcOperation=(txSum, txMin, txMax, txAve, txCount);
C++ declaration
enum TTXCalcOperation { txSum, txMin, txMax, txAve, txCount };

Description
Value Meaning

txSum Sum of data.

txMin Minimum value of data.

txMax Maximum value of data.

txAve Average value of data.

txCount Count of data.

TTXCalcPrinEvent

Contents

Typedef for TTXCalcLabel.OnCalculate event handler.

Delphi declaration
TTXCalcPrinEvent=procedure(Sender: TObject; var Accept: Boolean) of object;
C++ declaration
typedef void __fastcall(__closure *TTXCalcPrinEvent)(System::TObject *Sender, bool & Accept);

Description
Set Accept to false to skip printing.

TTXDBLabelDataChanged

Contents

Typedef for OnDataChange event

Delphi declaration
TTXDBLabelDataChanged=procedure(Sender: TObject; Field: TField) of object;
C++ declaration
typedef void __fastcall(__closure *TTXDBLabelDataChanged)(System::TObject *Sender, Db::TField *Field);

Description

TTXGroupOnNeedData

Contents

Typedef for TTXGroup.OnNewData event handler.

Delphi declaration
TTXGroupOnNeedData=procedure(var Value: String) of object;
C++ declaration
typedef void __fastcall(__closure *TTXGroupOnNeedData)(System::AnsiString & Value);

Description
When event handler is called, parameter Value has the value of the underlying data field as a string, the application can change this data.

TTXOnNeedDataEvent

Contents

Typedef for OnNeedData event handler.

Delphi declaration
TTXOnNeedDataEvent=procedure(Sender: TComponent; Restart: Boolean; var FoundMore: Boolean) of object;
C++ declaration
typedef void __fastcall(__closure *TTXOnNeedDataEvent)(Classes::TComponent *Sender, bool Restart, bool & FoundMore);

Description
If Restart is true, application needs to find the first data record, and the next, if false.

Set FoundMore to true, if a new record was found.

TTXRulerOpt

Contents

Ruler, dispalyed at design time.

Delphi declaration
TTXRulerOpt=(troVertical, troHorizontal, troVertUnits, troHrxUnits);
C++ declaration
enum TTXRulerOpt { troVertical, troHorizontal, troVertUnits, troHrxUnits };

Description
Value Meaning

troVertical Vertical lines between columns.

troHorizontal Horizontal lines between rows.

troVertUnits Column numbers.

troHrxUnits Row numbers.

TTXSysDataType

Contents

Type of system data dispalyed by TTXSysLabel .

Delphi declaration
TTXSysDataType=(txDate, txTime, txDateTime, txPage, txTitle);
C++ declaration
enum TTXSysDataType { txDate, txTime, txDateTime, txPage, txTitle };

Description
Value Meaning

txDate Current date.

txTime Current time.

txDateTime Current date and time.

txPage Number of current page.

txTitle Report title.

TTXTOnGetTextEvent

Contents

Typedef for OnGetText event handler.

Delphi declaration
TTXTOnGetTextEvent=procedure(Sender: TObject; var Text: String) of object;
C++ declaration
typedef void __fastcall(__closure *TTXTOnGetTextEvent)(System::TObject *Sender, System::AnsiString & Text);

Description
Change Text parameter to what needs to be printed.