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