LazReport, published OnGetValue in TfrPrintGrid so templates can modify custom variables

git-svn-id: trunk@18971 -
This commit is contained in:
jesus 2009-03-12 20:43:57 +00:00
parent 373ac65497
commit 5066e9c035

View File

@ -40,6 +40,7 @@ type
TfrPrintGrid = class(TComponent)
private
FDBGrid : TDBGrid;
FOnGetValue: TDetailEvent;
FOnSetUpColumn: TSetupColumnEvent;
FReport : TfrReport;
FReportDataSet : TfrDBDataSet;
@ -81,6 +82,7 @@ type
property ShowHeaderOnAllPage : boolean read fShowHdOnAllPage write fShowHdOnAllPage default True;
property ShowProgress : Boolean read fShowProgress write fShowProgress default false;
property OnSetupColumn: TSetupColumnEvent read FOnSetUpColumn write FOnSetupColumn;
property OnGetValue: TDetailEvent read FOnGetValue write FOnGetValue;
end;
@ -245,6 +247,7 @@ begin
FReport.OnEnterRect :=@OnEnterRect;
FReport.OnPrintColumn:=@OnPrintColumn;
FReport.ShowProgress :=fShowProgress;
FReport.OnGetValue :=FOnGetValue;
FReportDataSet := TfrDBDataSet.Create(Self);
FReportDataSet.Name := 'frGridDBDataSet1';